I fixed my own problem. It was my Apache web server that was not
working correctly.
Quoting Benjamin Stambaugh <bmstamba@xxxxxxx>:
Hi. I have been having issues with PHP compiling. It was workin fine
until a day ago and now every time I try to access a page with any
kinda of PHP script I comes up with errors. I just worte this simple
code for the purpose to demonstrate my problem. When I access the
file through my web browser (firefox) it starts to compile fine and
then I just stops just about at the 3rd or 4th line of the PHP script
and treats the rest of the page as if it were just plain HTML code.
It does this for anything I have in written in PHP even without using
a database. I was wondering if anyone had any clue as to why this is
happening.
Some back ground info. Im using the latest version of PHP, Apache2,
and MySQL5.0 all on a windows platfrom.
Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MySQL Server Information</title>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<link rel="stylesheet" href="php_styles.css" type="text/css" />
</head>
<body>
<h1>MySQL Database Server Information</h1>
<?php
$DBConnect = mysqli_connect("localhost", "user", "password");
echo "<p>MySQL client version: "
. mysqli_get_client_info() . "</p>";
echo "<p>MySQL connection: "
. mysqli_get_host_info($DBConnect) . "</p>";
echo "<p>MySQL protocol version: "
. mysqli_get_proto_info($DBConnect) . "</p>";
echo "<p>MySQL server version: "
. mysqli_get_client_info($DBConnect) . "</p>";
mysqli_close($DBConnect);
?>
</body>
</html>
Here is the output I got from this code:
MySQL Database Server Information
MySQL client version: " . mysqli_get_client_info() . ""; echo "
MySQL connection: " . mysqli_get_host_info($DBConnect) . "
"; echo "
MySQL protocol version: " . mysqli_get_proto_info($DBConnect) . "
"; echo "
MySQL server version: " . mysqli_get_client_info($DBConnect) . "
"; mysqli_close($DBConnect); ?>
Ben Stambaugh
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php