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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.