php配置
waiwai021
不喜,不忧,不燥,不悲,努力做好自己
展开
-
php set_time_limit
set_time_limit — 设置脚本最大执行时间 设置允许脚本运行的时间,单位为秒。如果超过了此设置,脚本返回一个致命的错误。默认值为30秒,或者是在php.ini的max_execution_time被定义的值,如果此值存在。 当此函数被调用时,set_time_limit()会从零开始重新启动超时计数器。换句话说,如果超时默认是30秒,在脚本运行了了25秒时调用 set_原创 2015-12-09 10:14:42 · 491 阅读 · 0 评论 -
BUG:The lowest two bytes of the flags array is reserved for pecl/memcache 解决方法
用memcached有时会报错 the lowest two bytes of the flags array is reserved for pecl/memcache 将以前的 $mc->add($name, $value, $exp); 改为 $mc->add($name, $value,false,$exp); 需要加个是否做数据压缩选项原创 2017-04-01 10:11:15 · 1368 阅读 · 0 评论 -
php input 提交条数超载
php.ini 文件里的 max_input_vars 重新设置值 修改后重启php service php-fpm stop service php-fpm start原创 2015-11-06 15:06:21 · 543 阅读 · 0 评论