Php communicates with flex through amf. After debugging, I found that if there is a date () function, flex returns an error.

Source: Internet
Author: User
Php communicates with flex through amf. After debugging, I found that if there is a date () function, the flex returns an error. a. php
   
}
?>
This php communicates with flex through amf. After debugging, I found that as long as there is a date () function, flex returns an error.

Amf version 2.1.1.

A. php
    
}
?>


Reply to discussion (solution)

What is the error message?

What is the error message?

Flex prompts an error message: Channel disconnected before an acknowledgement was already ed.

This error is reported for all current debugging and flex operations.

It is estimated that the time zone is not specified, resulting in the use of the date () function warning.
Prevent warning errors in php, or add date_default_timezone_set ("Asia/Shanghai") to php ");

Date ('Z') returns positive and negative numbers with no more than five digits
Time returns 10 digits.

Apparently, your gmtime should return the number of seconds of a Greenwich Mean Time.
If the caller of the gmtime method performs a validity check, the program will be terminated due to an error.

You can verify this.

function gmtime()   {    return 100;   }

Date ('Z') returns positive and negative numbers with no more than five digits
Time returns 10 digits.

Apparently, your gmtime should return the number of seconds of a Greenwich Mean Time.
If the caller of the gmtime method performs a validity check, the program will be terminated due to an error.

You can verify this.

function gmtime()   {    return 100;   }

Thanks to the moderator, you have replied to many questions. Problem solved

It is estimated that the time zone is not specified, resulting in the use of the date () function warning.
Prevent warning errors in php, or add date_default_timezone_set ("Asia/Shanghai") to php ");

It's strange to add it. during the test, an error is returned even if date ('s. I did not expect this.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.