Jump to content

Displaying errors


cerberus478

Recommended Posts

Hi I'm trying to display the errors that I might have. I entered some code and I'm now getting a blank page.

 

I have tried

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

 

but I haven't gotten any errors.

Is there any other way for me to display any errors that I might have

Link to comment
Share on other sites

you should set those settings in your php.ini on your development system so that you don't need to remember to put the settings into your code for development and remove them on a live server.

 

those two setting being in your code won't show php parse errors in your main file because parse errors are detected before your code is even considered to be code, so the lines with those settings never run.

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.