Php communicates with flex through amf. After debugging, I found that if there is a date () function, flex returns an error. php & lt ;? Phpclass & nbsp; edit_img {& nbsp; function & nbsp; gmtime () & nbsp; & nbsp ;{& nbsp; & n php communicates with flex through amf. After debugging, I found that as long as there is a date () function, the flex returns an error.
A. php
class edit_img
{
function gmtime()
{
$temp = date('Z');
return $temp;
}
}
?>
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
Class edit_img
{
Function gmtime ()
{
$ Temp = time (); // This is normal
Return $ temp;
}
}
?>
------ Solution --------------------
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 ");