cerberus478 Posted April 25, 2014 Share Posted April 25, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/288006-displaying-errors/ Share on other sites More sharing options...
Ch0cu3r Posted April 25, 2014 Share Posted April 25, 2014 As long as those two lines are the top of the script and is within php tags, it should display the errors. Alternatively you could look at your servers error log instead. Quote Link to comment https://forums.phpfreaks.com/topic/288006-displaying-errors/#findComment-1477248 Share on other sites More sharing options...
mac_gyver Posted April 25, 2014 Share Posted April 25, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/288006-displaying-errors/#findComment-1477263 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.