473,408 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

PHP 4.3.4 and MySQL_i_ extension. How to setup?

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
7 2129
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
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
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
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
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
Does it have to be in c:\windows\system32? Thanks
Jul 17 '05 #7
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tore Ferner | last post by:
Hi, On linux: I'm a newbie and want to make build-versions of python 2.1.3 and it's modules which link against different versions of a library located in directories not mentioned in...
4
by: I_AM_DON_AND_YOU? | last post by:
Hi Cor: You have given a very good suggestion that I can directly reference the "Program Files" Folder. Actually my vb.net program reads/write a notepad file record.txt. For example, the name...
0
by: Roman Yakovenko | last post by:
Hi. I want to create setup script, that will install compiled extension module plus few binaries the extension module depends on. For example: I have package X: X: __init__.py _x_.dll ( or...
0
by: John Ling | last post by:
Hello, I have been trying to install an application which requires Python: http://chip.dfci.harvard.edu/~wli/MAT/ My environment is AIX 5.2. Below is the section of the setup that has failed,...
4
by: 7stud | last post by:
Hi, I can't find any documentation on the setup() function in the distutils.core module; specifically I want to know what the 'name' argument does. In some examples in the python docs, they use...
0
by: Alexander Petrov | last post by:
Hi, I've successfully compiled p4python with modified setup.py the key to success was to split extra_compile_args's argument '-arch' into 2 args. below is fixed part: ext_modules=,
0
by: mauro | last post by:
Hi all, I am trying to make a package distribution containing some extension module written in C. The problem is that when I run setup.py some files are generated in the wrong position. Suppose...
1
by: dxm | last post by:
I am a new comer to python. I am wondering how setup.py works. For example, I have a directory like this: / setup.py mymodule.c where setup.py is: from distutils.core import setup,...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.