I have a problem preventing php warnings - they should remain visible on my php pages. For example, this one:
Strict standards: non-static method MyTimer :: instance () to C: \ eclipse-php \ workspace \ web \ mypackage \ classes \
I am using xampp, and php.ini has been modified to modify it:
error_reporting = E_ALL & amp; ~ E_STRICT
and restart Apache, but there is no difference
any suggestions?
In my opinion, you should correct the error, but you can also simplify the error message too :
ini_set ('display_errors', '0'); # Do not show any errors ... error_reporting (E_ALL | E_STRICT); # ... but log in the Apache log
Set this code for example in your * .php file "index.php"
More information :
I hope this works fine for you
Gray's Dave
Comments
Post a Comment