Jump to content

Truning on error reporting


cooldude832

Recommended Posts

If he puts a php.ini file in his webroot, it will use that instead of the webhost one.

 

That only works when php has been setup cgi, not as an apache module.

 

<?php

  error_reporting(E_ALL) ; ini_set('display_errors','1');

?>

 

I did that right on the top of my page (pre any thing else)

and it still loads a blank page on an error

 

There really is nothing more you can do. A note from the manual...

 

Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.
I know where its dying on, but of course I can't get the sql error back cause its being stupid

 

PHP doesn't think, therefor cannot be 'stupid'. Post your code.

 

l got ahold of the site admin and they are trying to help

 

The server admin shouldn't turn on display_errors as it will open the entire server up to problems. display_errors should be disabled on production servers, hence, you should test on another server where you have the ability to turn on error_reporting and display_errors without effecting others.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.