摘要: 有的时候是php.ini里面的allow_url_fopen没有打开,但有些打开以后还是会报错,偶然间在phpinfo里面看到allow_url_fopen下一行有一个allow_url_include选项是关闭的手工加上开启后,重启,可以正常加载URL里面的文件 阅读全文
posted @ 2012-05-23 23:06 ﹏Sakura 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 先看看官方文档的解释__set() is run when writing data to inaccessible properties.__get() is utilized for reading data from inaccessible properties.究竟用中文怎么翻译呢? inaccessible :n. 难达到;难接近;无法理解。有代码有真相:<?phperror_reporting(E_ALL);class stu{ private $a; private $b = 0; public $c; public $d = 0; //这里的 private 可以用 p 阅读全文
posted @ 2012-05-23 08:19 ﹏Sakura 阅读(14074) 评论(2) 推荐(3) 编辑