Tandem Posted January 12, 2007 Share Posted January 12, 2007 I can't get my server to display error messages, ever.The following code produces a totally blank white screen:[code]<?phperror_reporting(E_ALL);lol test?>[/code]and error reporting is set to E_ALL in php.ini too.I need the error messages to work. Can anyone suggest anything i can try? Thanks. Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/ Share on other sites More sharing options...
trq Posted January 12, 2007 Share Posted January 12, 2007 [code]<?phperror_reporting(E_ALL); ini_set("display_errors","1");lol test?>[/code] Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159556 Share on other sites More sharing options...
Tandem Posted January 12, 2007 Author Share Posted January 12, 2007 Thanks for the reply. I just tried what you suggested and it produces a blank white screen still. Anything else i can try? Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159563 Share on other sites More sharing options...
redbullmarky Posted January 12, 2007 Share Posted January 12, 2007 change the setting in the PHP ini file. i believe that files are checked firstly to make sure the file is essentially valid PHP - ie, no parse errors, etc. only THEN is it run. so if you have parse errors like this, then the ini_set line, etc, wont even get run.you need to either set up a .htaccess in your web root changing the error_reporting / display_errors settings, or change them directly in the php.ini file.cheers Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159567 Share on other sites More sharing options...
Tandem Posted January 12, 2007 Author Share Posted January 12, 2007 The problem is that no matter what i do i can't get errors ever.This code:[code]<?phpdskdfjf?>[/code]would produce a blank white screen too. php.ini is set to E_ALL too. Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159588 Share on other sites More sharing options...
redbullmarky Posted January 12, 2007 Share Posted January 12, 2007 sure - but also in your php.ini file, have you got display_errors turned on? Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159593 Share on other sites More sharing options...
Tandem Posted January 12, 2007 Author Share Posted January 12, 2007 [quote author=redbullmarky link=topic=122178.msg503627#msg503627 date=1168645547]sure - but also in your php.ini file, have you got display_errors turned on?[/quote]Oh man that's exactly it. Shoulda checked that to start with. Thanks very much for the help, it's been driving me nuts. Link to comment https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159596 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.