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! Link to comment https://forums.phpfreaks.com/topic/95099-error_reporting-issue/ 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); Link to comment https://forums.phpfreaks.com/topic/95099-error_reporting-issue/#findComment-487109 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. Link to comment https://forums.phpfreaks.com/topic/95099-error_reporting-issue/#findComment-487115 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! Link to comment https://forums.phpfreaks.com/topic/95099-error_reporting-issue/#findComment-487118 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.