[PHP-DB] Compile Error FIXED

2006-02-21 Thread Benjamin Stambaugh
I fixed my own problem.  It was my Apache web server that was not 
working correctly.


Quoting Benjamin Stambaugh <[EMAIL PROTECTED]>:

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:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";>
 
   MySQL Server Information
   

   
 
 
   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);
   ?>
 



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



RE: [PHP-DB] Compile Error

2006-02-21 Thread Bastien Koert

My Bad...works fine

MySQL Database Server Information
MySQL client version: 4.1.7

MySQL connection: localhost via TCP/IP

MySQL protocol version: 10

MySQL server version: 4.1.7

forgot to change the logon details

bastien



From: Benjamin Stambaugh <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] Compile Error
Date: Tue, 21 Feb 2006 01:18:57 -0500

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:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";>
 
   MySQL Server Information
   

   
 
 
   MySQL Database Server Information
   $DBConnect = mysqli_connect("localhost", "user", 
"password");

echo "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);
   ?>
 



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



RE: [PHP-DB] Compile Error

2006-02-21 Thread Bastien Koert

No problems compiling, but there are problems with the code

i get:

MySQL Database Server Information

Warning: mysqli_connect() [function.mysqli-connect]: Access denied for user 
'user'@'localhost' (using password: YES) in C:\Apache2\www\xhtml.php on line 
11


MySQL client version: 4.1.7


Warning: mysqli_get_host_info() expects parameter 1 to be mysqli, boolean 
given in C:\Apache2\www\xhtml.php on line 15


MySQL connection:


Warning: mysqli_get_proto_info() expects parameter 1 to be mysqli, boolean 
given in C:\Apache2\www\xhtml.php on line 17


MySQL protocol version:

MySQL server version: 4.1.7


Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in 
C:\Apache2\www\xhtml.php on line 20




bastien



From: Benjamin Stambaugh <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] Compile Error
Date: Tue, 21 Feb 2006 01:18:57 -0500

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:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";>
 
   MySQL Server Information
   

   
 
 
   MySQL Database Server Information
   $DBConnect = mysqli_connect("localhost", "user", 
"password");

echo "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);
   ?>
 



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



[PHP-DB] Compile Error

2006-02-20 Thread Benjamin Stambaugh
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:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";>
 
   MySQL Server Information
   

   
 
 
   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);
   ?>
 



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