摘要:'."[SHUTDOWN] lvl:" . $lasterror['type'] . " | msg:" . $lasterror['message'] . " | file:" . $lasterror['file'] . " | ln:" . $lasterror['line']."\n"; ...
阅读全文
摘要:4 down voteIf you know the data is in UTF8 than you want to set up the header.I wrote a solution answering to another tread.The solution is the following: As the UTF-8 byte-order mark is \xef\xbb\xbf we should add it to the document's header.You can adapt it to your code, basically you just want
阅读全文
摘要:安装VLD:wget http://pecl.php.net/get/vldtar zxvf vld-0.9.1.tgzcd vld-0.9.1phpize./configuremake install编辑php.ini文件激活vld扩展:extension=vld.so别忘了重启Apache。下面我们看看如何检测PHP脚本的执行情况,看看PHP是如何处理单双引号字符串的:s.php(单引号):d.php(双引号):开始检测:php -dvld.active=1 s.php或者d.php结果不管是s.php还是d.php,number of ops都是3,内容也都一样:number of op
阅读全文
摘要:http://akrabat.com/zend-framework-2/
阅读全文
摘要:最近发现很多PHP程序员对PHP版本知识了解不是很清楚,自己也看了不少类似的文章,还是感觉不够明确和全面,网上的结论又都是模棱两可,在此,给出最完整甚至武断的解释。 本文讲解:VC6与VC9,Thread Safety与None-Thread Safe,Apache module与fastcgi的区别与选择。PHP的大版本主要分三支:PHP4/PHP5/PHP6 其中,PHP4由于太古老、对OO支持不力已基本被淘汰,请无视PHP4。 PHP6由于基本没有生产线上的应用,还基本只是一款概念产品,很多功能已在PHP5.3.3上实现,所以也不详述,请无视PHP6。 PHP5的版本主要分四支:P...
阅读全文
摘要:今天用zend studio debug再次“罢工” 哎。。。具体情况是:设置php webpage开始debug后 发现竟然抓不住断点选择Edit index结果 配置变成了然后就去 window=》preferences =》php =>debug好吧 表示自己是无头苍蝇一样 不知该怎么弄 找文档 竟然没找着好吧 突然想起 有个 搞了一下好像也不对 因为这个会半自动进行添加不小心看到有点懂了 虽然80端口是apache监听的 但是这儿配置有点重复 好像第二个被设置成了default 但说不定zend studio 犯二 匹配基础URL相同的第一个所以 要把第一个改掉然后debug就可
阅读全文