Andarian Posted November 20, 2009 Share Posted November 20, 2009 hey everyone I have a production server in which I want error reporting but only on some pages I have ini_set('display_errors', 1); ini_set('log_errors', 1); ini_set('error_log', 'error_log.txt'); ini_set('error_reporting', E_ALL ^ E_NOTICE); error_reporting(E_ALL); and what not at the start, but still I see no errors... please help Quote Link to comment Share on other sites More sharing options...
rarebit Posted November 20, 2009 Share Posted November 20, 2009 Have you induced an error? e.g. missing a ';' or use of a non prefixed '$' variable?, tried to use 'header' after html already sent? Quote Link to comment Share on other sites More sharing options...
Andarian Posted November 21, 2009 Author Share Posted November 21, 2009 yup i made a very clear syntax error Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted November 21, 2009 Share Posted November 21, 2009 If you have a syntax error and PHP can't parse the page, then setting the error_reporting level and turning on the displaying of errors at runtime will have no effect. See the comments on my tutorial:http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.