Page 1 of 1
PHP extension.help!
Posted: Sat Sep 03, 2005 8:43 am
by bebe
I've installed PHP5 and want to use php extensions mysql and mysqli. But there's an error message on PHP startup which said cannot load dynamic library, could not be found. In php.ini file extension path is extension_dir = "c:/php/ext". How can I solve it?
Posted: Sat Sep 03, 2005 8:53 am
by feyd
welcome to the forum. Please refrain from bolding your entire post as that doesn't help any.
I'm going to guess you installed using the installer (.exe) and not the zip. The exe doesn't come with the extensions for mysql/mysqli.
Posted: Sat Sep 03, 2005 9:07 am
by bebe
Thanks feyd.
Actually I didn't installed with installer. I unzipped them...and it has many extension .dlls including mysql/mysqli in the ext folder. If I don't remove the commas of extension=php_mysql.dll, extension=php_mysqli.dll etc. So I think one little thing's wrong with those extension path or configuration.
Posted: Sat Sep 03, 2005 9:15 am
by feyd
mmkay, I'm guessing you installed the zip to c:/php then? You'll need libmysql.dll readily available for it to load as well. Have you added the install directory to your system path?
My IIS / XP / PHP 5 install cheats
Posted: Fri Dec 30, 2005 9:41 pm
by dstefani
OK,
I tried the manual way with the zip files, I was having a hard time. I'm a Mac person but I
need my win laptop as a dev box for a week or two. (Arrrrge ;0 )
So I backed up the unzipped PHP dir (PHP_HOLD) as well as my php.ini.
I then ran the installer, and then copied the /ext dir from my PHP back up, as well as
all of the rest of the unzipped files (also PEAR) from the root of my PHP back up dir and pasted them into my installed PHP dir.
I made sure I did all the ini edits recommened in the linked page shown inthe first post on this page.
Restarted IIS and wam, bam, thank you mam, we're rockin' !
I hope I didn't miss anything, HTH.
dstefani

Posted: Sat Dec 31, 2005 7:59 am
by mickd
off topic but wow this is an old thread.