Turn off PHP Errors, Warnings and Notices
Posted: Thu Jan 13, 2011 12:13 pm
If you notice that the site is displaying PHP warnings and notices, these can (and should) be turned off. Sometimes during development the error reporting argument does not get changed, but it can be easily modified.
In the root of the fantasy site, "ootp_fantasy" in the distribution ZIPs, there is an "index.php" file. To tunr off PHP errors:
In the root of the fantasy site, "ootp_fantasy" in the distribution ZIPs, there is an "index.php" file. To tunr off PHP errors:
- Download and open "index.php" in a HTML or Text editor
- IN the PHP ERROR REPORTING LEVEL section, change the line:
to
Code: Select all
error_reporting(E_ALL);
Code: Select all
error_reporting(0);
- Save and overwrite the file on the server and PHP errors will disappear.