PHP and MySQL
Don Lancaster <[email protected]>
| Newsgroups | gmane.comp.db.mysql.windows |
|---|---|
| Message-ID | <620C0B8D8528D611AAFD0002A5EBF41002590B66@exchange_1.192.168.0.249> |
Hi all - here's the story... I installed MySQL 5 on my Windows XP computer and everything seems to work splendidly. I then installed Apache, and that worked wonderfully also. I added PHP5, and tested it with a simple "echo" statement and it worked marvelously. In a rapture, I tried to connect to a MySQL database using mysql_connect and I got an error message that in effect said Apache didn't know what the heck the function was. I remembered that PHP5 doesn't automatically include MySQL support, so I went to the PHP webpage and did the two things they stated I needed to do (put the php.ini file in the c:\windows directory, which it already was, and add it to the PATH environmental variable). I also "uncommented" the extension php_mysql.dll in the php.ini file. But it still doesn't work! I'm at my wit's end. What am I doing wrong? One book says that I should put the libmysql.dll in the c:\windows directory, but I'm wondering if it should be in the extensions folder (c:\php\ext). Is this correct? Can someone give me some advice (besides "Use ODBC instead")? Donald J. Lancaster Environmental Standards, Inc. 1140 Valley Forge Road PO Box 810 Valley Forge, PA 19482 phone: 610 935 5577 fax: 610 935 5583 www.envstd.com <http://www.envstd.com/>