PHP communicates with Flex through AMF, and I debug the discovery that, as long as there is a date () function, Flex returns an error

Source: Internet
Author: User
a.php
   
}
?>
This PHP communicates with the flex through AMF, and I debug to find out that as long as there is a date () function, Flex returns with an error.

AMF is the 2.1.1 version, I can't think of this problem again and again

a.php
    
}
?>


Reply to discussion (solution)

What is the error message?

What is the error message?

Flex Tip error message: Channel disconnected before an acknowledgement is received.

The current debug, Flex has reported this one error

It is estimated that there is no time zone specified, resulting in the use of the date () function warning.
Block warning errors in PHP, or add Date_default_timezone_set ("Asia/shanghai") to PHP;

Date (' Z ') returns a positive or negative number not exceeding 5 digits
Time returns a 10-digit number

Your gmtime should obviously return a GMT number of seconds.
If the caller of the Gmtime method checks for legitimacy, it is clear that the program is terminated with an error.

This you can verify

function Gmtime ()   {    return;   }

Date (' Z ') returns a positive or negative number not exceeding 5 digits
Time returns a 10-digit number

Your gmtime should obviously return a GMT number of seconds.
If the caller of the Gmtime method checks for legitimacy, it is clear that the program is terminated with an error.

This you can verify

function Gmtime ()   {    return;   }

Thank the moderator, here ask a lot of questions have your reply. The problem has been solved

It is estimated that there is no time zone specified, resulting in the use of the date () function warning.
Block warning errors in PHP, or add Date_default_timezone_set ("Asia/shanghai") to PHP;

Plus just fine, it's really weird when I test, even if date (' s '); Also returns an error. I didn't even think of it here.

  • 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.