cytech Posted March 8, 2008 Share Posted March 8, 2008 Hey All, I am on a live server(not a development box) that has error_reporting set to 2047. Now this is E_USER_NOTICE. I am testing a new system and well, there are errors with it, right now all I get is a blank page with no output from php letting me know whats wrong. On the top of the script I put: ini_set('error_reporting', '8191'); That didnt' work so I put: ini_set('error_reporting', 8191); that didn't work so I put: error_reporting(E_ALL); that didn't work either haha - So how can I see an error without having to go directly to the php.ini file and changing it? ??? Anyone with some advice will be a great help! Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 8, 2008 Share Posted March 8, 2008 Try this at the top of the script ini_set('display_errors', 1); error_reporting(E_ALL); Quote Link to comment Share on other sites More sharing options...
cytech Posted March 8, 2008 Author Share Posted March 8, 2008 Hey AndyB, Great thought - but still doesnt' work... I'm surprised becuase all of the methods I have tried already ussually work. Quote Link to comment Share on other sites More sharing options...
cytech Posted March 8, 2008 Author Share Posted March 8, 2008 Hey AndyB, Actually that did work - I read up on display_errors and it only works if there are no "fatal" errors. I put a fatal error in just to test - no wonder it didnt' work. I am now getting the normal notice errors printed. Thanks! Quote Link to comment 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.