Jump to content

Error reporting help


nwrfoto

Recommended Posts

I'm becoming confused with php error reporting so I hope someone can helm me.

 

Basically I want to see a message when I have an error in my code.

 

For example a simple snippet like this should produce an error:

 

echo "hello world"

echo "hello world 2";

 

 

Without the semi-colon after the first echo i should get an error but what i actually get is a blank page.

 

I have edited the php.ini and restarted the server to confirm that display errors is set to on (was originally off).

 

I have also tried all of the error reporting types: (E_ALL, E_NOTICE etc etc etc)

 

None of them will show an error message with the above type of error, only a blank screen. i do get messages if i do not declare a variable etc but the most common errors (for me at least) are syntax errors such as missing out semi colons or misplacing a bracket etc.

 

How can I see these messages?????

 

 

Link to comment
Share on other sites

Valid php scripts work fine.

 

In fact everything works fine except that I have written a long script and cannot find the problem in the code without the error messages.

 

I do NOT want to see messages such as undeclared variables etc but DO want to see those which are stopping the script from running.

 

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.