摘要:
(转载)http://www.111cn.net/phper/php/41216.htmPHP脚本执行时间限制,默认的是30m 解决办法:set_time_limit();或者修改PHP.ini 设置max_execution_time时间(不推荐) 使用php让浏览器刷新需要解决几个问题如果客户端浏览器关闭,程序可能就被迫终止,解决办法:ignore_user_abort即使关闭页面依然正常执行 如果程序一直执行很有可能会消耗大量的资源,解决办法使用sleep使用程序休眠一会,然后在执行 PHP定时执行的代码:<?phpignore_user_abort();//关掉浏览器,PHP脚本 阅读全文
posted @ 2013-06-20 17:38
robotke1
阅读(213)
评论(0)
推荐(0)
摘要:
(转载)http://www.jb51.net/article/30689.htm我们知道,PHP没有提供专门删除一个特定数组元素的方法。但是可以通过unset()函数来完成这种要求比如下面的程序: <?php $arr = array('apple','banana','cat','dog'); unset($arr[2]); print_r($arr); ?> 程序运行结果:Array ( [0] => apple [1] => banana [3] => dog ) 但是这种方法的最大缺点是没有 阅读全文
posted @ 2013-06-20 14:29
robotke1
阅读(328)
评论(0)
推荐(0)
摘要:
HTTP/1.1 200 OKServer: nginxDate: Thu, 20 Jun 2013 03:06:10 GMTContent-Type: text/html; charset=utf-8Connection: closeVary: Accept-EncodingContent-Length: 447String could not be parsed as XML_rare_shutdown_err:Array( [type] => 2 [message] => print_r(): Node no longer exists [file] => /xxx.p 阅读全文
posted @ 2013-06-20 12:59
robotke1
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号