Jump to content


Photo

Display error messages


  • Please log in to reply
4 replies to this topic

#1 daniish

daniish
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 26 September 2006 - 09:32 AM

Hello,

I have a known Parse Error:... in my script, which displays in the browser of one of my machines but is not visible on my other computer. Where can i turn this feature (display error messages) on/off ?

Is this defined in the W.A.M.P build?


Thanks
Olly

#2 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 26 September 2006 - 09:57 AM

Your php ini file. If you have wamp you can look for this by left clicking on the icon near your time for wamp. Then go to the config files. You should only have all errors and warnings showing on a test server

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 26 September 2006 - 10:02 AM

if you are getting a Parse error you need to fix that otherwise your script will fail to work properly

#4 steveclondon

steveclondon
  • Members
  • PipPipPip
  • Advanced Member
  • 161 posts

Posted 26 September 2006 - 10:04 AM

Yes as they have pointed out above you should fix all errors and warnings that is why you have it on the test server. You should not have it on the main server you are going to use however.

#5 daniish

daniish
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 26 September 2006 - 01:01 PM

Cheers Steveclondon ...the php.ini was what i needed!

Just needed to change the following from:

;display_errors = on                to              display_errors = on

As you mention this is only worth doing on a test server. As a result i have decided to turn the above option off and write errors to a log file instead:

error_log = errors.txt


Thanks for your help!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users