Jump to content


Photo

Getting Iis To Display Php Error Messages


  • Please log in to reply
3 replies to this topic

#1 everbright

everbright
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 29 June 2006 - 02:02 PM

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!

#2 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 29 June 2006 - 03:10 PM

Maybe you wanna try wampserver.
[a href=\"http://www.wampserver.com/en/\" target=\"_blank\"]http://www.wampserver.com/en/[/a]

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#3 fractil

fractil
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 29 June 2006 - 03:33 PM

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_ALL

If you want errors to echo to your browser page you should change the following setting to on:

display_errors = On

If 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!

"One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs"

#4 everbright

everbright
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 01 July 2006 - 04:54 AM

Thanks for the tip! That did it  :D

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_ALL

If you want errors to echo to your browser page you should change the following setting to on:

display_errors = On

If 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!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users