Howdy, I have Windows 2000 Professional installed on my computer with IIS. I installed MySQL and it seems to be working properly though the MySQL command line client. I installed PHP 5.1.2 and it seems to be working properly (at first glance).
My problem. I copied the php.ini-recommended file to the php.ini file. They are located in the PHP directory (C:\PHP). I made a couple changes: include_path = ".;c:\php\includes;C:\php\pear" doc_root = "C:\Inetpub\wwwroot" extension_dir = "C:\php\ext" And I un-commented: extension=php_mysql.dll I also have C:\php in the system path variable. I have two problems. First when I use the echo $_SERVER['HTTP_USER_AGENT'] to show its information, I notice that the variables I set are not being set. They are there default (I assume) values. include_path = .;C:\php5\pear doc_root = no value extension_dir = C:\php5 Both the local and master value are the same. I followed the installation instructions to the letter. Am I missing something? How do I solve this? My second problem, which I assume is because of the above problem. I get the following error: Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\index.php on line 20 When I run the following script: <html> <head> <title> --- </title> </head> <body> Welcome To<BR> <H1> --- </H1> <?php echo "Hello!"; ?><BR><BR> <?php echo $_SERVER['HTTP_USER_AGENT']; ?><BR><BR> <?php phpinfo(); $link = mysql_connect ('localhost', 'root'); if (!link) { die('Could not connect: '. mysql_error()); } echo 'Connected successfully'; mysql_close($link); echo 'Connection closed'; ?> </body> </html> Any help is appreciated, as I am dead in the water with no paddles. ______________________________________________ - Martian Rover KF6KNC