PDA

View Full Version : show all errors


esthera
02-26-2006, 04:53 PM
I have a php file that has a few include files in it.

One of the inlude file is not showing up at all (but no errors)
there must be errors in the file but because it seems there is no error reporting i'm not seeing them.

I tried setting
error_reporting(E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR);
on top of the inlcude but that didn't work.

where is the right place to put this so that I can see errors and begin to debug??

vinyl-junkie
02-27-2006, 05:04 AM
Put this in your script right after the opening PHP tag:

ini_set("error_reporting","E_ALL");

You might also check your website's error log to see if that might yield some clues.

esthera
02-27-2006, 06:46 AM
its still not showing me anything -- i put that line in the include file itself - should i put it in the php calling the include?

where do i look for error logs?

vinyl-junkie
02-27-2006, 07:47 AM
You should be able to see your error log from the control panel of your web hosting account.