php内存不足诱因有3:
1. memory_limit
2. RLimitMEM 200000000 in httpd.conf
3. ulimit -a 或 文件/usr/sbin/httpd限制了ulimit

 


file_put_contents函数会自动加排他锁LOCK_EX


 

$formatted = sprintf("%020.2f", $money); //20表示总长20位(包括小数点),若结果超过20位,则以结果为准


 

天气API:http://www.google.com/ig/api?weather=广州
           http://www.google.com/ig/api?weather=Beijing


 

ACL:
AROs: Things requesting access(request or user object)
ACOs: Actions that are requested(action)

AXOs: Things to control access on(resource or controller)

eg: Bob (ARO) requests access to "View" (ACO) the project(s) called
"Linux" (AXO)

 


 

析构函数会在到某个对象的所有引用都被删除或者当对象被显式销毁时执行。
父类的析构函数不会被引擎暗中调用。要执行父类的析构函数,必须在子类的析构函数体中显式调用
parent::__destruct()。
析构函数在脚本关闭时调用,此时所有的头信息已经发出。
试图在析构函数中抛出一个异常会导致致命错误。

posted on 2013-11-08 09:33  gdutzzh  阅读(149)  评论(0编辑  收藏  举报