PHP头条
热点:

php通过amf与flex通信,小弟我调试发现,只要有date()函数,flex返回就报错


php通过amf 与flex 通信,我调试发现,只要有date()函数,flex返回就报错
a.php

class edit_img
{
   function gmtime()
   {
    $temp = date('Z');
    return $temp;
   }

}
?>
这个php通过 amf 与flex 通信,我调试发现,只要有date()函数,flex返回就报错。

amf是2.1.1版,反复想不通这个问题

a.php

class edit_img
{
   function gmtime()
   {
    $temp = time(); //这样就正常
    return $temp;
   }

}
?>

------解决方案--------------------
估计是没有指定时区,导致使用date()函数的warning。
php中屏蔽warning级错误,或者在php中加上 date_default_timezone_set("Asia/Shanghai");

www.phpzy.comtrue/phprm/5321.htmlTechArticlephp通过amf与flex通信,小弟我调试发现,只要有date()函数,flex返回就报错 php通过amf 与flex 通信,我调试发现,只要有date()函数,flex返回就报错 a.php classedit_img { functiongmtime() { $te...

相关文章

相关频道:

PHP之友评论

今天推荐