everbright Posted June 29, 2006 Share Posted June 29, 2006 Hi all,I'm totally new to PHP, and am starting to learn the ropes here, after years of frustration with ASP's limitations.I've successfully set up PHP 5.1.4 with IIS 6.0 (I'm using Windows 2003 Server OS).Ran into some strange behaviour when I started to do some simple codes. Whenever there's a mistake in my code, and I hit the script, IE or FireFox just gives me a blank screen, instead of spitting out error messages that help. That left me troubleshooting in the blind [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]Anyone knows how I can turn on debugging messages for PHP on IIS and Apache? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/13207-getting-iis-to-display-php-error-messages/ Share on other sites More sharing options...
hackerkts Posted June 29, 2006 Share Posted June 29, 2006 Maybe you wanna try wampserver.[a href=\"http://www.wampserver.com/en/\" target=\"_blank\"]http://www.wampserver.com/en/[/a] Quote Link to comment https://forums.phpfreaks.com/topic/13207-getting-iis-to-display-php-error-messages/#findComment-50848 Share on other sites More sharing options...
fractil Posted June 29, 2006 Share Posted June 29, 2006 In the "Error handling and logging" section of your php.ini file you can change a couple of settings to meet your needs. First make sure that the error reporting setting is set to the following:error_reporting = E_ALLIf you want errors to echo to your browser page you should change the following setting to on:display_errors = OnIf you want to log errors to a file turn off the display_errors setting and set the path of the error log:error_log = "C:\php\error_log.txt" Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/13207-getting-iis-to-display-php-error-messages/#findComment-50863 Share on other sites More sharing options...
everbright Posted July 1, 2006 Author Share Posted July 1, 2006 Thanks for the tip! That did it :D[quote author=fractil link=topic=97157.msg389297#msg389297 date=1151595237]In the "Error handling and logging" section of your php.ini file you can change a couple of settings to meet your needs. First make sure that the error reporting setting is set to the following:error_reporting = E_ALLIf you want errors to echo to your browser page you should change the following setting to on:display_errors = OnIf you want to log errors to a file turn off the display_errors setting and set the path of the error log:error_log = "C:\php\error_log.txt" Cheers![/quote] Quote Link to comment https://forums.phpfreaks.com/topic/13207-getting-iis-to-display-php-error-messages/#findComment-51520 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.