For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > PHP 4.3.4 and MySQL_i_ extension. How to setup?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP 4.3.4 and MySQL_i_ extension. How to setup?
Tony

2004-03-27, 11:53 pm

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


Ruby Tuesdays

2004-03-28, 10:10 pm

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


pandora

2004-03-28, 10:10 pm

myqlli has no dll , it is build in.
"Tony" <nospam@pittarese.com> wrote in message
news:c45b0b$2gl@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
>
>



Andy Hassall

2004-03-28, 10:10 pm

On Sat, 27 Mar 2004 19:50:58 -0600, "Tony" <nospam@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 <andy@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Tony

2004-03-28, 10:10 pm

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" <NoSpamPlease_rubytuzdaiz@yahoo.com> wrote in message
news:c45uhg$2fbv2q$1@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
>
>



Ruby Tuesdays

2004-03-28, 10:10 pm

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


Ruby Tuesdays

2004-03-28, 10:10 pm

Does it have to be in c:\windows\system32? Thanks


Tony

2004-03-28, 10:10 pm

"Ruby Tuesdays" <NoSpamPlease_rubytuzdaiz@yahoo.com> wrote in message
news:c471nv$2e8flf$1@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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com