You are not logged in.

#1 2005-01-13 19:13:32

rokclimb15
Member
From: Athens, GA
Registered: 2004-04-02
Posts: 10
Website

php 5.0.3-2 with mysqli

I requested that the new php5 package be compiled with mysqli and low and behold it was!!  The only problem is, I can't figure out how the hell to activate it.   php.net only mentions that the package must be compiled with the --with-mysqli=mysql_config_path/mysql_config option.  Assuming this was in fact done (as Judd said it was in his reply to my feature request), I have no idea what other steps are necessary to implement it.  php.ini does not have an extension for mysqli, nor does phpinfo reveal that this extension is enabled.  When I try to use the mysqli class in a script, I get

Class 'mysqli' not found in /home/httpd/html/mysqlitest.php on line 2

I imagine there is some other step necessary here to make this work, but I am missing it.  Can anyone point me in the right direction?

Offline

#2 2005-01-13 20:45:21

rokclimb15
Member
From: Athens, GA
Registered: 2004-04-02
Posts: 10
Website

Re: php 5.0.3-2 with mysqli

fixed:

had to remove php entirely and then reinstall php.  Mysqli is now listed under phpinfo and is working fine!

Offline

#3 2006-03-29 20:55:50

Benol
Member
From: Warsaw, Poland
Registered: 2006-03-20
Posts: 28

Re: php 5.0.3-2 with mysqli

I have a problem with mysqli. From my phpinfo():

--with-mysqli=shared

Moreover:

benol ~ $ slocate mysqli
...
/usr/lib/php/extensions/no-debug-non-zts-20050922/mysqli.so
...
benol ~ $              

I still can't use mysqli - objective or procedural. Is there something in php.ini I have to change?

Offline

#4 2006-04-02 20:17:59

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: php 5.0.3-2 with mysqli

Benol wrote:

I still can't use mysqli - objective or procedural. Is there something in php.ini I have to change?

Yes, and it should totally come to your attention when you search the file for mysqli.so wink

   - neri

Offline

Board footer

Powered by FluxBB