7 messages in com.mysql.lists.win32PHP and MySQL| From | Sent On | Attachments |
|---|---|---|
| Don Lancaster | 06 Jan 2006 08:04 | |
| Lawson Cronlund | 06 Jan 2006 10:41 | |
| Don Lancaster | 06 Jan 2006 11:41 | |
| Kristen G. Thorson | 06 Jan 2006 12:37 | |
| LE Backup | 06 Jan 2006 15:53 | |
| dave schuppert | 06 Jan 2006 17:19 | |
| Larry Elliott | 07 Jan 2006 11:52 |
| Subject: | PHP and MySQL![]() |
|---|---|
| From: | Don Lancaster (DLan...@envstd.com) |
| Date: | 01/06/2006 08:04:38 AM |
| List: | com.mysql.lists.win32 |
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/>




