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
https://forums.phpfreaks.com/topic/202376-error-reporting-help/
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.

 

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.