adrianTNT Posted February 12, 2007 Share Posted February 12, 2007 Hello, I moved to a new server and some of my scripts dont work here. I cannot see what is the problem with the scripts because I see no errors on page even if I try to include an unexistent file for example. I think there is something like this that can be placed in .htaccess? php_value show_errors=true ? Thank you. - Adrian. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 12, 2007 Share Posted February 12, 2007 Change it t On or 1 should do it. True may work as well. Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 12, 2007 Share Posted February 12, 2007 You may also have to change log_errors, error_reporting, etc. Check through the appendix on php.net Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 12, 2007 Share Posted February 12, 2007 no need to change log_errors if you want errors to display to the screen. But yeah you will need to set the correct error_reporting level in order to for PHP to report you the correct type of errors, E_ALL is best for development/debugging purposes. Quote Link to comment Share on other sites More sharing options...
adrianTNT Posted February 12, 2007 Author Share Posted February 12, 2007 I tried this: <?php // Same as error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?> <?php $comment_id = "comments_script_page";?> <?php include 'scripts/comments/comments.php';?> It shows a complete blank page, no html code in it. Any ideas? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 12, 2007 Share Posted February 12, 2007 You need to turn display_errors on too. EDIT: Hang on just re-read your first post. It not show_errors but display_errors to turn on error reporting Quote Link to comment Share on other sites More sharing options...
adrianTNT Posted February 12, 2007 Author Share Posted February 12, 2007 Thank you all, this is the one that worked, I added it to my .htaccess file: php_value display_errors 1 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.