Jump to content


Photo

PHP error Display


  • Please log in to reply
4 replies to this topic

#1 Moon-Man.net

Moon-Man.net
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts

Posted 17 July 2006 - 10:44 PM

Hello,
I have 2 web servers, with diferent versions of PHP. one 4.2 and another later.
the 4.2 one shows what line number the error is on when i leave off a ";" or something, but the newer version does not.
Can someone please explain how i can turn on this usefull feature?
Cheers,
Nathan

#2 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 17 July 2006 - 10:45 PM

Adjust the php.ini file.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#3 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 July 2006 - 10:47 PM

Does the later show any errors? You can switch this option on / off with error_reporting, however, the line numbers in error reporting are unreliable.

#4 Moon-Man.net

Moon-Man.net
  • Members
  • PipPipPip
  • Advanced Member
  • 84 posts

Posted 17 July 2006 - 11:01 PM

Thats kool, i dont mind. On the Old server it gives the Next line if i leave off a ";"
What should i set it to?

#5 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 July 2006 - 11:37 PM

Well for developement I have mine set to E_ALL.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users