donaldtrump Posted September 2, 2007 Share Posted September 2, 2007 Hello.I'm using this server and no errors are appearing at all for any php code or for mysql. If I did a simple script like this: <?php echo("yelll ?> The page would just be blank.I used the phpinfo() function and was told that error_display was on. I'm puzzlede by this. Any help appreciated Thanks Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/ Share on other sites More sharing options...
Guest Posted September 2, 2007 Share Posted September 2, 2007 There's a directive in the php.ini file like so: error_reporting = E_ALL | E_STRICT It may likely be set to something that doesn't allow you to see any important errors... try setting it to how I have in the above example Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-339742 Share on other sites More sharing options...
wildteen88 Posted September 2, 2007 Share Posted September 2, 2007 There's a directive in the php.ini file like so: error_reporting = E_ALL | E_STRICT It may likely be set to something that doesn't allow you to see any important errors... try setting it to how I have in the above example Also make sure display_errors is enabled too. Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-339771 Share on other sites More sharing options...
donaldtrump Posted September 2, 2007 Author Share Posted September 2, 2007 Thanks for the replies.The thing is I don't appear to have a directory where the php.ini file is supposed to be(/usr/local/lib/php.ini).At least one I can access. I tried viewing hidden folders but there is no usr directory. Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-339969 Share on other sites More sharing options...
donaldtrump Posted September 2, 2007 Author Share Posted September 2, 2007 I tried adding theses to a php page: ini_set("display_errors", "1"); ini_set("error_reporting", "1"); Still nothing but a blank page Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340025 Share on other sites More sharing options...
Hypnos Posted September 2, 2007 Share Posted September 2, 2007 Is this on shared hosting, or your own home server? phpinfo will tell you where the php.ini file is located. Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340029 Share on other sites More sharing options...
teng84 Posted September 2, 2007 Share Posted September 2, 2007 not sure about your prob but do this to be sure you have php installed <?php phpinfo(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340065 Share on other sites More sharing options...
Crew-Portal Posted September 2, 2007 Share Posted September 2, 2007 ini_set("display_errors", "1"); ini_set("error_reporting", "1"); These 2 lines above ^^ Have been disabled since PHP 3! Use: <?php error_reporting(1); error_reporting(E_ERROR | E_WARNING | E_PARSE); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?> instead Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340072 Share on other sites More sharing options...
donaldtrump Posted September 3, 2007 Author Share Posted September 3, 2007 I added the code that N350CA suggested but it's making no difference.Still a blank page.As I say ,the php.ini settings have display errors on. It works fine without syntax errors but won't display anything otherwise. This is the most #$#$#$ I've ever seen. Quote Link to comment https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340218 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.