By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,819 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,819 IT Pros & Developers. It's quick & easy.

PHP 4.3.4 and MySQL_i_ extension. How to setup?

P: n/a
I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming and
testing. In preparation for using PHP 5, I'd like to move to using the
MySQLi extensions (as opposed to the plain MySQL extensions).

I've upgraded to the MySQL 5.0 alpha and have it running fine.

What I haven't been able to locate is the PHP dll needed for the MySQLi
extension. Can anyone point me in the right direction?

The instructions on the php.net site talk about how to compile the Linux
version of PHP for this new extension, but no reference is made to a dll.

I'd like to be able to try this out without having to upgrade to PHP 5 on
this machine.

As an experiment, I took the php_mysqli.dll file that is included with the
PHP5 source code and placed it in my extensions directory. PHP 4.3.4 reports
the following error message in a dialog box "Unknown(): Unable to load
dynamic library 'c:\PHP\extensions\php_mysqli.dll'-The specified module
could not be found"

The location is correctly specified, so I suspect that the problem is not as
suggested by the dialog box error.

Tony
Jul 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
I'm having the same error message even with PHP5RC1. I can't seem to load
php_mysql.dll and php_mysqli.dll. Perhaps some PHP guru can explain it.

Thanks
Jul 17 '05 #2

P: n/a
myqlli has no dll , it is build in.
"Tony" <no****@pittarese.com> wrote in message
news:c4********@library2.airnews.net...
I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming and testing. In preparation for using PHP 5, I'd like to move to using the
MySQLi extensions (as opposed to the plain MySQL extensions).

I've upgraded to the MySQL 5.0 alpha and have it running fine.

What I haven't been able to locate is the PHP dll needed for the MySQLi
extension. Can anyone point me in the right direction?

The instructions on the php.net site talk about how to compile the Linux
version of PHP for this new extension, but no reference is made to a dll.

I'd like to be able to try this out without having to upgrade to PHP 5 on
this machine.

As an experiment, I took the php_mysqli.dll file that is included with the
PHP5 source code and placed it in my extensions directory. PHP 4.3.4 reports the following error message in a dialog box "Unknown(): Unable to load
dynamic library 'c:\PHP\extensions\php_mysqli.dll'-The specified module
could not be found"

The location is correctly specified, so I suspect that the problem is not as suggested by the dialog box error.

Tony

Jul 17 '05 #3

P: n/a
On Sat, 27 Mar 2004 19:50:58 -0600, "Tony" <no****@pittarese.com> wrote:
I'm running PHP 4.3.4 on my home Windows XP Pro machine for programming and
testing. In preparation for using PHP 5, I'd like to move to using the
MySQLi extensions (as opposed to the plain MySQL extensions).

I'd like to be able to try this out without having to upgrade to PHP 5 on
this machine.


As far as I'm aware, you can't - it's PHP5 only. You might be able to copy the
source over into a PHP4 tree and do the necessary hacking to get it compile,
but I doubt it's been tested much in that sort of configuration.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #4

P: n/a
If you're running PHP 5, try the following:

In the PHP 5 install directory (c:\php5 for example), you'll find two .dll
files: libmysql.dll and libmysqli.dll. Copy these to c:\windows\system32.
There are two corresponding extensions in the 'ext' directory to load from
the php.ini file.

Tony

"Ruby Tuesdays" <No**********************@yahoo.com> wrote in message
news:c4*************@ID-205437.news.uni-berlin.de...
I'm having the same error message even with PHP5RC1. I can't seem to load
php_mysql.dll and php_mysqli.dll. Perhaps some PHP guru can explain it.

Thanks

Jul 17 '05 #5

P: n/a
I think I found the mysqli.dll and mysql.dll in either ext directory of if
you
download pecl-5.0.0RC1-Win32.zip, but it won't load.

Any ideas? Thanks
Jul 17 '05 #6

P: n/a
Does it have to be in c:\windows\system32? Thanks
Jul 17 '05 #7

P: n/a
"Ruby Tuesdays" <No**********************@yahoo.com> wrote in message
news:c4*************@ID-205437.news.uni-berlin.de...
Does it have to be in c:\windows\system32? Thanks

Assuming you're running a windows server, yes, based on my experience.

Tony
Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.