[eluser]tpiscotti[/eluser]
In case anyone is still having this same issue, I was able to solve this -- for my particular environment anyway.
Here, again, is my particular environment. In case anyone else comes across this and happens to be experiencing the same error and has the same (or similar) setup:
- Windows XP Pro
- PHP 5.2.8
- Apache 2.2.11
- MySQL 5.1
After searching all afternoon, here's the suggestion I found that fixed it:
copy the php.ini file from C:\PHP into the Apache bin directory (for me it's C:\Apache\bin).
That was it.
That was all I had to do and now I can autoload the database library in Codeigniter just as the user guide says to and it works just fine. No more blank pages. I set up a quick test page just to make sure by putting this in a simple php page:
Code:
<?php
$conn = mysql_connect('server', 'username', 'password');
if($conn) {
echo 'Finally connected!!!';
} else {
die('Still cannot connect' . mysql_error());
}
?>
After restarting Apache and loading up the test php page, I got the "I'm finally connected!!!" message so I knew it was working.
So if anyone has a similar setup as I have listed above, and you KNOW you've gone through all the proper php.ini configurations but have NOT yet copied php.ini into your Apache bin folder, try that and see if it works.
NOTE:
My particular PHP installation is not from the .msi Windows installer file...it is from the zip package. There are many many additional files and extensions needed to get this to work properly that you don't get from the msi installer file so you're better off downloading the zip package version and just extracting all those files right to C:\PHP.
Other people might still be having trouble with this for different reasons (different server/database/OS setup, etc) but this is just what helped me with my particular set up.
I hope this will help someone else!!
- Tony