Hi,
Firstly I have installed PHP and Apache.
Pages from my server return the following:
Apache/2.0.55 (Win32) PHP/5.1.2 Server at localhost Port 80
so now you know what platform is running and the PHP is correctly installed and is working I will get on with the problem
I have installed MySQL, and there are My SQL Tables there:
mysql> select * from people;
+----+------------+---------+
| id | first_name | surname |
+----+------------+---------+
| 1 | Ann | Brache |
+----+------------+---------+
1 rows in set (0.11 sec)
mysql>
I have been through (throughly every step on the php website) to install MySQL extension correctly
http://www.php.net/mysql/
I have edited my php.ini file to the correct extension directory, made sure there were no extra slashes etc.
I have uncommented extension=php_mysql.dll
I have my path set correctly:
and i have my libmysql.dll in the php dir (which the path points to) and the php_mysql.dll file in the extension dir.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\; C:\PHP\
I also get no errors when I start apache:
C:\PROGRA~1\APACHE~1\APACHE2\BIN>apache -w -n Apache2 -k start
C:\PROGRA~1\APACHE~1\APACHE2\BIN>apache -w -n Apache2 -k stop
The Apache2 service is stopping.
The Apache2 service has stopped.
Yet when I run some simple script to test mysql under php it fails:
script:
<?php
/
Created on May 1 2006
Connect to the MYSQL Database
/
$username = "daz";
$password = "letmein";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
echo "Connected to MySQL<br>";
mysql_close($dbh);
?>
this above script returns nothing to the browser whatsoever. the page source is blank. not a single character.
Also when i run phpinfo() nowhere does it mention anything about mysql being installed.
I dont understand I am getting no errors but nothing is working correctly.
Can someone please advise?
Thanks
Daz