IIS下某个php站点访问异常,提示require的文件不存在:Warning: require(app/config/constants.php) [function.require]: failed to open stream: No such file or directoryFailed opening required 'app/config/constants.php' (include_path='c:/windows/PHP526/PEAR')但实际上是存在的。此问题有两种解决方案:...【阅读全文】
在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个"PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are ...【阅读全文】
无论是apache还是nginx,php.ini都是通用,而php-fpm.com适合nginx+fcgi的配置首先选择产品环境的php.ini(php.ini-production)[root@TCS ~]# ls /home/oldboy/tools/php-5.3.27/php.ini-*/home/oldboy/tools/php-5.3.27/php.ini-development/home/oldboy/tools/php-5...【阅读全文】
中文里都说是slowlog的错,关闭slow即可解决这个问题但是为什么slow log会导致这个错误?实际环境一定要关闭slow log?详细原因还得翻英文http://www.tuicool.com/articles/ZFBz2i点击(此处)折叠或打开In other words: when PHP's slowlog tries to get an actual stacktrace, it may se...【阅读全文】
公司一台服务器上的php页面打开稍微有点慢,打算开启php的slow.log查看。按网上的步骤,编辑php-fpm.conf,将request_slowlog_timeout设置成1,并将slowlog设置成一个正常的路径:; The log file for slow requests; Default Value: not set; Note: slowlog is mandatory if request_slowlog_timeout is setslowlog = v...【阅读全文】