一,关闭notice错误提示
1、在php.ini文件中改动 error_reporting 改为:error_reporting=E_ALL & ~E_NOTICE
一,关闭notice错误提示
1、在php.ini文件中改动 error_reporting 改为:error_reporting=E_ALL & ~E_NOTICE
本文章介绍在php中关闭notice错误的一些做法,但是不得不说的是在关掉错误提示时,那么程序代码中大量的notice级别错误是否会造成PHP性能下降
PHP Notice: Undefined variable,PHP Notice: Undefined index
今天在写引用时突然出现了Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer错误,后来才知道原因是此方法已不被赞成并在 PHP/Zend 未来的版本中很可能不再支持了
我用的linux系统,今天使用phpmyadmin时出现Wrong permissions on configuration file,should not be world writable!错误提示,查资料一看,原来phpMyAdmin要在755权限下才能正常工作(777不行)。
我用的linux系统,今天使用phpmyadmin时出现Wrong permissions on configuration file,should not be world writable!错误提示,查资料一看,原来phpMyAdmin要在755权限下才能正常工作(777不行).
一,这个因为是变量未定义我们只要找到相关的位置加上如下代码:
或者我们可以这样: