Jump to content

php not Displaying runtime Errors!! Please I need urgent help


Recommended Posts

Am not new to php programming. I have run php programs on different servers. So am not new. But the server am presently using is trying to prove me wrong. Can someone help to prove me right that am not a kid in php programming.

My problem is that, anytime I run a php program, if there is an error in the code, it usually display at runtime. That helps me to easily discover where the problem is and in most cases, I usually fix the error myself without any assistance. But the server I use presently does not display errors at runtime and I need it to display any error generated at runtime.


[color=red]error_reporting(E_ALL);[/color]


I tried adding the code above to the begining of every script, and yet it still doesn't display errors. I don't know how else I can get around this. The only thing is that, whenever I write a script and run it on my server and it shows a BLANK PAGE, instead of showing the actual output, I suspect an error to be stoping the script, then I would now run the script on my LOCAL server, then my local server will display the error, then I will correct it, and test it, then when its running perfectly on my local server, then I will move it to my real server, then it would work, without displaying a blank page.

But guess what, am fed up of moving script from local server to real server.

Please am dying in the need of a solution.
I have profered the solution I know and its not working.

Please help and help me.

Thanks
Ayanex
error_reporting does not affect whether errors gets displayed or not. It only effects the type of errors it should log. The actual setting you will want to enable is display_errors. This is the setting that controls whether errors should be displayed during run time.
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.