Reputation: 20173
Im lost here, closed few files and clicked yes on save all and now page wont load and error_reporting(1); its in all documents... No erors given
Upvotes: 0
Views: 291
Reputation: 360742
Turn on error_reporting and display_errors in your php.ini file. If you have a syntax errror in the script, most likely the script's being killed long before execution could ever reach in the in-script ini_set/error_reporting overrides.
You might want to check the server's error log, as fatal errors generally get sent there if error reporting/display is turned off.
Upvotes: 1
Reputation: 9262
If your error isn't a syntax error, you can manually debug by placing die('test');
in various areas of your code to see if that portion executes.
Upvotes: 2
Reputation: 77064
You also need to turn on the display of errors, so at the top of your file add:
error_reporting(E_ALL);
ini_set("display_errors", 1);
Upvotes: 1