Hi ingresman
Sorry I didn't get back to you. I decided to uninstall IIS and reinstall it because the problem seemed to be there - command line PHP worked fine.
Unfortunately my machine hangs up just before the end of the install everytime I try it - my PC is getting a bit old - so I think a...
I get no response.
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>c:\php\php d:\joebrowns\phptest.php
C:\>
I previously had MySQL v3.? which I uninstalled before installing v4. Unfortunately no other MySQL on another box.
Regards
telnet localhost 3306
or
telnet 127.0.0.1 3306
(returns)
7
4.1.10-nt?&fRFHt28,?dp'nsy&N6`eX
Connection to host lost.
C:\>
I don't know how to do from the IIS user.
Regards
OK - here goes :-
PHP Version 4.3.1
System Windows NT localhost 5.0 build 2195
Build Date Feb 15 2003 23:02:25
Server API ISAPI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT\php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug...
OK - I understand.
The entire page code is as follows :-
<?php
// phpinfo();
$connect = mysql_connect("localhost", "root", "azbycx") or die (mysql_error());
$create = mysql_query("CREATE DATABASE IF NOT EXISTS movies") or die ("Cannot create DB movies");
mysql_select_db("movies")...
I am using the following statement to connect to MySQL using PHP on Windows 2000.
$connect = mysql_connect("localhost", "root", "azbycx") or die (mysql_error());
Unfortunately I get the following error.
Warning: mysql_connect() [function.mysql-connect.chm]: Can't connect to MySQL server on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.