Error Reporting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
AlexGrim
Forum Newbie
Posts: 2
Joined: Fri Oct 31, 2008 6:06 am

Error Reporting

Post by AlexGrim »

Hey guys, i've got something that has been bugging me to death for almost 1 year now. Error reporting!
I own quite a few websites, and i work on them locally and test them until they are sound enough to put on my live servers for use.
The problem is, that after i will upload a large project, i get brazillian freakin error notices (undefined index, etc) that are embarrassing.

I ALWAYS use error_reporting(E_ALL) and have even tried it with E_STRICT and yet i NEVER GET ANY FREAKING ERRORS!
I am running Apache, on Fedora, with PHP 5.* and MySql 5.*. I don't know why i cannot see my errors locally, but i can always see them on Godaddy's servers, when i'm using the exact same error setting, but if someone could point me in the right direction on this, i'd be grateful.

This makes the development process take me longer, because i cannot see errors, and so, if something doesn't work, i have to step through myself to find what the problem was, instead of php telling where it is. I have looked around to see if there is something that may need changing to get errors, but i came up with nothing.

Thanx all.
ahowell
Forum Newbie
Posts: 17
Joined: Mon Sep 01, 2008 9:18 pm

Re: Error Reporting

Post by ahowell »

make sure you have display_errors set in your php.ini
koen.h
Forum Contributor
Posts: 268
Joined: Sat May 03, 2008 8:43 am

Re: Error Reporting

Post by koen.h »

And turn them off on the production server.
User avatar
AlexGrim
Forum Newbie
Posts: 2
Joined: Fri Oct 31, 2008 6:06 am

Re: Error Reporting

Post by AlexGrim »

Ha, imagine that! All this time, i've been screwing with the error_reporting setting, and i've never once paid any attention to the display_errors setting that is just underneath it. I though that was for something else,something besides little script errors; like server errors, or something.

Thanx a million guys. I have actually tried to create an error yet, to see if that get's me what i was looking for, but i'm sure that it will.

Now i can also turn them off on the production server. Thanx again.
Post Reply