harryrodd Posted November 8, 2012 Share Posted November 8, 2012 Hello, Im just starting off and reading through Php&Mysql From Novice to Ninja and ive come into trouble. I am trying to use the INCLUDE command for the database login info,the db.inc.php file, and when I take away the login and replace with the include 'db.inc.php'; file, it freezes, just goes white. When I mess with the login details, i can get my error so I know its working. Running a Mac Pro,dual dual core processors, osx 10,6.8, firefox 16.0.2, have tried on safairi and chrome as well. Any thoughts please? Also, when i use the header(Location: .) to return to a page it works grand, but when I add the exit(); , its goes white? Quote Link to comment https://forums.phpfreaks.com/topic/270457-include-file-makes-page-go-white/ Share on other sites More sharing options...
PFMaBiSmAd Posted November 8, 2012 Share Posted November 8, 2012 Im just starting off Then, you need to set php's error_reporting to E_ALL (or even better a -1) and display_errors to ON in your master php.ini on your development system to get php to help you by reporting and displaying all the errors it detects. Stop and start your web server to get any changes made to the master php.ini to take effect and use a .php script with a phpinfo statement in it to confirm that the two settings actually got changed in case the php.ini that php is using isn't the one that you changed. Quote Link to comment https://forums.phpfreaks.com/topic/270457-include-file-makes-page-go-white/#findComment-1391062 Share on other sites More sharing options...
harryrodd Posted November 8, 2012 Author Share Posted November 8, 2012 (edited) Alright, found a whole lot of php.ini files. Im using MAMP, now, whats the difference of the php.ini files in the conf/ folder, or the ones in the bin/php5.1.4/config folders? Edited November 8, 2012 by harryrodd Quote Link to comment https://forums.phpfreaks.com/topic/270457-include-file-makes-page-go-white/#findComment-1391068 Share on other sites More sharing options...
PFMaBiSmAd Posted November 8, 2012 Share Posted November 8, 2012 The Loaded Configuration File line in the phpinfo output is the php.ini that php is using. Quote Link to comment https://forums.phpfreaks.com/topic/270457-include-file-makes-page-go-white/#findComment-1391069 Share on other sites More sharing options...
harryrodd Posted November 8, 2012 Author Share Posted November 8, 2012 Thats what I'm talking about! Loads of warnings to work with now. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/270457-include-file-makes-page-go-white/#findComment-1391073 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.