Hello All,

I've been through heck with this. It's been about 30 days, and I am still stumped. I tried most online "instructs" and "corrections" and was hoping for some real life feedback.

Here is the simplicity of the issue:

1) Running Apache 2.2, PHP 5.2.6, MySQL ? (In my phpMyAdmin, I have a message that displays "Your PHP MySQL library version 5.0.51a differs from your MySQL server version 3.23.32. This may cause unpredictable behavior."

2) My php is running OK, and can parse pages just fine and display all standard php generated functions.

2) Apache is running obviously

3) MySQL is also running OK

Here is what is occurring:

I load the following code, just to test my connection:

<?php
$dbcnx = mysql_connect('localhost', 'root', 'root');
if (!$dbcnx) {
	echo '<p>Unable to connect to the ' . 'database server at this time.</p>');
	exit();
}
if (!mysql_select_db('bootcamp')) {
	exit('<p>Unable to locate the joke ' . 'database at this time.</p>');
}
?>

I get NO errors, and a complete blank white screen in my browser. Actually, I ran a few tests, for example, just added some standard html and a page meta title, and NOTHING reads to the browser - it's as if the entire page is out of commission, and it will just not work! I can load any other php fine. It's only if I attempt a MySQL connection.

Can anyone shed some light on this please?

I have checked my ini and httpd config paths etc several times to ensure they're correct.

I must be missing something.

SOS

    The lack of any output at all usually indicates a parse error in a PHP configuration where display_errors is turned off and/or the error_reporting level has parse errors disabled. In this case, you have an extraneous ")" at the end of "echo" line.

    To see the parse error messages, you'll either need to locate and view the PHP error log file, or change the php.ini settings or .htaccess settings for that directory to turn on display_errors. (Turning it on in the script won't help with parse errors, since they are registered before anything in the script is actually executed.)

      NogDog!

      I must be brainless, and you directed me perfectly, and the problem has been resolved. I'm fully functioning now!

      Thanks!

        Don't forget to mark this thread resolved (and it might help those in the future that find this thread if you explain what you did to resolve it).

          bradgrafelman,

          Sure. How do I close the thread?

          And the solution to my entire problem was the removal of an additional ' in one of my php directives.

            There's a link under "Thread Tools" towards the top of this page (just above the first post).

              Write a Reply...