Author Topic: Can I make PHP show error messages?  (Read 15588 times)

Offline blackhawk5193

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Can I make PHP show error messages?
« on: July 08, 2008, 12:15:45 AM »
Hi, I'm wondering why it doesn't show PHP errors. It's rather frustrating trying to figure out what's wrong when you don't know what the problem is. And wow, that last sentence was redundant. Is there a way to enable the showing of error messages?

Helping Webmasters - Webmaster Forum, Website Support and T35 Hosting Support

Can I make PHP show error messages?
« on: July 08, 2008, 12:15:45 AM »

Offline Alex Melen

  • Co-CEO, Melen LLC
  • Administrator
  • Addict
  • *****
  • Posts: 2,809
  • Karma: +9/-0
    • View Profile
    • T35 Hosting
Re: Can I make PHP show error messages?
« Reply #1 on: July 09, 2008, 12:59:55 AM »
There is a code you can put at the top of your php page for it to show the errors. I don't remember what it is, but you can just search google and you should be able to find it. Or maybe some of the other members know it...

dWhite

  • Guest
Re: Can I make PHP show error messages?
« Reply #2 on: July 09, 2008, 08:15:19 AM »

Offline Alex Melen

  • Co-CEO, Melen LLC
  • Administrator
  • Addict
  • *****
  • Posts: 2,809
  • Karma: +9/-0
    • View Profile
    • T35 Hosting
Re: Can I make PHP show error messages?
« Reply #3 on: July 10, 2008, 08:17:08 AM »
Thanks Daniel!

Offline itslenny

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Can I make PHP show error messages?
« Reply #4 on: September 22, 2009, 03:33:51 AM »
here is a really cool guide to php error handling. including just displaying errors, logging them, and specific guides for drupal and wordpress implementations.

http://itslennysfault.com/force-php-to-show-all-errors-or-save-them-to-a-log-for-trouble-shooting

Offline Steven22

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • GETPOWERPAD wireless power
Re: Can I make PHP show error messages?
« Reply #5 on: June 15, 2011, 09:14:33 AM »
Thanks Lenny! This is what I am exactly searching for since months!!!

Offline Steven22

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • GETPOWERPAD wireless power
Re: Can I make PHP show error messages?
« Reply #6 on: June 15, 2011, 09:18:33 AM »
Hi, I'm wondering why it doesn't show PHP errors. It's rather frustrating trying to figure out what's wrong when you don't know what the problem is. And wow, that last sentence was redundant. Is there a way to enable the showing of error messages?

Too easy now a days to solve ;)