PHP extension.help!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bebe
Forum Newbie
Posts: 2
Joined: Sat Sep 03, 2005 1:40 am

PHP extension.help!

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
bebe
Forum Newbie
Posts: 2
Joined: Sat Sep 03, 2005 1:40 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
User avatar
dstefani
Forum Contributor
Posts: 140
Joined: Sat Jan 11, 2003 9:34 am
Location: Meridian Idaho, USA

My IIS / XP / PHP 5 install cheats

Post 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 :)
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

off topic but wow this is an old thread.
Post Reply