PHP communicates with the flex through AMF, my little brother I debug found that as long as there is a date () function, Flex returns an error

Source: Internet
Author: User
PHP communicates with Flex through AMF, and I debug the discovery that, as long as there is a date () function, Flex returns an error
a.php

Class Edit_img
{
function Gmtime ()
{
$temp = Date (' Z ');
return $temp;
}

}
?>
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

Class Edit_img
{
function Gmtime ()
{
$temp = time (); This is normal.
return $temp;
}

}
?>

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