Brandoe85
12-20-2004, 03:25 AM
I have recently gotten a new computer, and have IIS running, on my old computer I had apache. When I was running apache, everything worked fine. Now when I run a php page(without any mysql connections), everything works fine, but when I try to use mysql, I get this error:
Fatal error: Call to undefined function mysql_connect()
Now I've googled this countless times, and tried many different things and nothing has worked. I changed my php.ini file and uncommented the extension=php_mysql.dll line, and changed the extension_dir = line to point to the php_mysql.dll location. Which I moved into the php folder, I read somewhere online that you need to do all this since php5 doesn't come standard with mysql or something. Also, I don't actually have a php.ini file, I have one that says php.ini-dist, and php.ini-recommended. I didn't know so I changed both. My question is, has anyone had this problem, or have php5 and mysql running on IIS. Mysql works fine, I can connect up through the command line, but when I try to use it in php, I get a fatal error. Any suggestions?
Also, I've ran <?php phpinfo();?> and did a search for mysql, and the only things that come up are in some paths, in the path has mysql in there. It says nothing else about it.
Fatal error: Call to undefined function mysql_connect()
Now I've googled this countless times, and tried many different things and nothing has worked. I changed my php.ini file and uncommented the extension=php_mysql.dll line, and changed the extension_dir = line to point to the php_mysql.dll location. Which I moved into the php folder, I read somewhere online that you need to do all this since php5 doesn't come standard with mysql or something. Also, I don't actually have a php.ini file, I have one that says php.ini-dist, and php.ini-recommended. I didn't know so I changed both. My question is, has anyone had this problem, or have php5 and mysql running on IIS. Mysql works fine, I can connect up through the command line, but when I try to use it in php, I get a fatal error. Any suggestions?
Also, I've ran <?php phpinfo();?> and did a search for mysql, and the only things that come up are in some paths, in the path has mysql in there. It says nothing else about it.