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 Link to comment https://forums.phpfreaks.com/topic/182289-error-reporting/ 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? Link to comment https://forums.phpfreaks.com/topic/182289-error-reporting/#findComment-961939 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 Link to comment https://forums.phpfreaks.com/topic/182289-error-reporting/#findComment-962446 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 Link to comment https://forums.phpfreaks.com/topic/182289-error-reporting/#findComment-962457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.