dezkit Posted May 24, 2008 Share Posted May 24, 2008 how come my host doesn't show errors whenever i make a mistake in php? For example, <?php $hi = "hi"; {{{{{{{{{{{ ?> instead of showing Unexptected "{" on Line 2134. It shows a blank page Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/ Share on other sites More sharing options...
serverman Posted May 24, 2008 Share Posted May 24, 2008 i think it only will show that if you install php with debug enabled (or you add the print error at the end of your script{i cant think of it now}) but on my xp test server its setup in debug but not on the Unix one. Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548696 Share on other sites More sharing options...
Lodius2000 Posted May 24, 2008 Share Posted May 24, 2008 add display_errors = 1 to php.ini in your cgi-bin folder if php.ini doent exist, which it might not, create it with that code as its content Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548697 Share on other sites More sharing options...
dezkit Posted May 24, 2008 Author Share Posted May 24, 2008 i created a cgi-bin folder and and a php.ini file with display_errors = 1, still nothing.... Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548698 Share on other sites More sharing options...
Lodius2000 Posted May 24, 2008 Share Posted May 24, 2008 no in your web root you should have a folder called cgi-bin, that is where the file goes EDIT: there should be a bunch of files already inside cgi-bin php-cgi php5-cgi test-cgi ... some are pretty big, my php5-cgi is 21 megs Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548699 Share on other sites More sharing options...
dezkit Posted May 24, 2008 Author Share Posted May 24, 2008 i am not using one of those professional web hosts, i am using yahoo web hosting Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548700 Share on other sites More sharing options...
Lodius2000 Posted May 24, 2008 Share Posted May 24, 2008 like geocities? or yahoo webhost are you sure that you have php installed run this <?php echo "hi"; ?> tell me the result Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548701 Share on other sites More sharing options...
dezkit Posted May 24, 2008 Author Share Posted May 24, 2008 hi is the result. Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548702 Share on other sites More sharing options...
dezkit Posted May 24, 2008 Author Share Posted May 24, 2008 i just read on yahoo's faq, that all the errors go to logs/scripts.log how do i make it so i can see the error on the scripts?? Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548703 Share on other sites More sharing options...
Lodius2000 Posted May 24, 2008 Share Posted May 24, 2008 try putting error_reporting(E_ALL & ~E_NOTICE); inside your php tags at the top of the script where the errors are see if that does it EDIT: checking out for the night, but that is all i know to suggest good luck Quote Link to comment https://forums.phpfreaks.com/topic/107036-php-errors/#findComment-548705 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.