Jim from Oakland Posted May 8, 2003 Share Posted May 8, 2003 Team AphpACHE On Windows XP Home (development only) I have been trying to get php (Apache?) to show error messages in my browser. I changed the php.ini (shown below). I issue commands in code (shown below) to tell php to show errors, yet when an error occurs the screen goes blank. Might I need Apache settings, do I need some sort of \"template\" (html?) document? Jim -------- *** CODE *** I use to verify that settings change, they do. error_reporting(E_ALL); Echo \'<br>error_reporting = ALL: \' . error_reporting(); error_reporting(0); Echo \'<br>error_reporting = NONE: \' . error_reporting(); Here are *** php ini *** settings. display_errors = On display_startup_errors = On log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off track_errors = Off Not set (php initial settings/default) ;docref_root = /phpmanual/ ;docref_ext = .html ;error_prepend_string = \"<font color=ff0000>\" ;error_append_string = \"</font>\" ;error_log = filename ;error_log = syslog Link to comment https://forums.phpfreaks.com/topic/447-crosspost-no-error-messages-makes-debugging-fun/ Share on other sites More sharing options...
effigy Posted May 9, 2003 Share Posted May 9, 2003 error_reporting(0); are you leaving this line in with the other E_ALL line? Link to comment https://forums.phpfreaks.com/topic/447-crosspost-no-error-messages-makes-debugging-fun/#findComment-1520 Share on other sites More sharing options...
Jim from Oakland Posted May 9, 2003 Author Share Posted May 9, 2003 no i just did that to verify that my code was actually affecting settings. I turned \"ALL\" on then checked the status then I turned everything off and checked again. It changed so I know code is working. In the actual script I set it to ALL. For the record my php.ini settings are error_reporting = E_ALL display_errors = On display_startup_errors = On log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off track_errors = Off I must be missing something basic? Is there something in Apache I should look at? Thanks sooo much. Link to comment https://forums.phpfreaks.com/topic/447-crosspost-no-error-messages-makes-debugging-fun/#findComment-1522 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.