ayanex10 Posted December 29, 2006 Share Posted December 29, 2006 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.ThanksAyanex Quote Link to comment https://forums.phpfreaks.com/topic/32185-php-not-displaying-runtime-errors-please-i-need-urgent-help/ Share on other sites More sharing options...
genericnumber1 Posted December 29, 2006 Share Posted December 29, 2006 you might wanna try[code=php:0]ini_set('display_errors', 1);[/code]at the top or in the php.ini (preferred), even if you set the errors to E_ALL doesn't mean you're displaying them. Quote Link to comment https://forums.phpfreaks.com/topic/32185-php-not-displaying-runtime-errors-please-i-need-urgent-help/#findComment-149380 Share on other sites More sharing options...
wildteen88 Posted December 29, 2006 Share Posted December 29, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/32185-php-not-displaying-runtime-errors-please-i-need-urgent-help/#findComment-149390 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.