Hi Gus,
Hi Gus,
In PHP 5, MySQL is no longer enabled by default, nor is the MySQL library bundled with PHP. Because of this, you will need to enable php_mysql.dll inside of php.ini. You have to create this file using one of the other files you found php.ini-DIST or php.ini-RECOMMENDED. The php.ini-RECOMMENDED is as you may have guessed the recommended standard setup, open this files up save as php.ini, then make the needed changes and save. Depending on you server setup you may have to place the php.ini file into your system directory or point to it in your PATH environment variables. Your windows system directory is here *C:\WINNT\system32 *that is where you should place the file libmysql.dll and deletes any duplicates of this file. Also, you’ll need to stop you server before moving the libmysql.dll to the system directory.* *
Best regards, Robert Cullimore
Gus Crawford wrote:
Well, it seems I've got a little problem.
I know you guys are busy, and there's an acronym '*RTFM*', but I really did try to RTFM, but to F avail.
*I'll give you my F setup:*
Windows 2000
IIS 5.0
I installed PHP 5.
I've installed MySQL (4.?) (The "Generally Avaiable" Release)
I chose to install my PHP as an ISAPI filter, feeling given my options, that was the thing to do.
(I wanted it to meld nicely with my server software)
*My Problem:*
PHP 5 doesn't automatically support the environment functions I need to be able to call to communicate with my MySQL server. (I need those! )
When I try to make that function call, I get of course "Fatal error. function not defined."
Well, you could have knocked me over with a feather.
*Here are my issues:*
(Keeping in mind that I'm an idiot, please feel free to tell me where I screwed up if you can decypher from my message.)
It says that I can turn on or enable the php_mysql.dll in the php.ini, well, fairly strait-forward right?
In my F dreams. I didn't find (anywhere on my computer after a thorough search) a file called php.ini. I found a file called php.ini-DIST and one called php.ini-RECOMMENDED, both of which were similar to eachother in content and seemed to be *.ini files despite the crap on the end of the file extention, but I changed what the install.txt, faq on the download page, and install documentation on the internet said, and nothing. (Changing the RECC... and DIST.. to just the normal .ini of course) I also found a file I'll need called libmysql.dll which is also appearently required. I've got it copied into a million different places in hopes that one of them is right. I really don't know where it goes, I couldn't figure that out from the documentation. (It said %SYSTEMROOT%. What the hell does that mean? My server root? My windows root?)
*If I could sum everything up:*
* Using *PHP* on *Win2K/IIS 5.0* as an *ISAPI* filter. * Need to use *MySQL* * Don't have the *MySQL library functions* * *Need those* * Can't find (what I deem to be confidently) a php.ini file. * Don't know where I'm supposed to put libmysql.dll
*Please Help!*
P.S. I'm frustrated in my writing of this message, but you guys (or girls for that matter) are awesome and I love you, because even the concept that there is someone out there who can help me and provide answers and smile and say "Here's what you do..." means I can sleep for a bit! Then after that-- right back to work!
------------------------------------------------------------------------
Free yourself from those irritating pop-up ads with MSN Premium: <http://g.msn.com/8HMBENCA/2752??PS=47575> Join now and get the first two months FREE*.