Page 1 of 1

mysql "imporved" function don't work

Posted: Tue Apr 18, 2006 5:53 pm
by mjmacarty
I am running php 5.1.2, and I can't get any of the mysql improved functions to work, i.e. mysqli().

Is there an extension that needs to be "turned on" in the php.ini file? Thanks for any help.

Re: mysql "imporved" function don't work

Posted: Tue Apr 18, 2006 5:59 pm
by Chris Corbyn
mjmacarty wrote:I am running php 5.1.2, and I can't get any of the mysql improved functions to work, i.e. mysqli().

Is there an extension that needs to be "turned on" in the php.ini file? Thanks for any help.
Is this linux or windows? Did you compile from source or install a binary?

If you compiled from source you should ensure you add --with-mysqli=/path/to/mysql at ./configure since PHP5 doesn't do it by default.

Re: mysql "imporved" function don't work

Posted: Tue Apr 18, 2006 6:15 pm
by RobertGonzalez
mjmacarty wrote:I am running php 5.1.2, and I can't get any of the mysql improved functions to work, i.e. mysqli().

Is there an extension that needs to be "turned on" in the php.ini file? Thanks for any help.
I think you can uncomment the mysqli line in php.ini...

Code: Select all

;remove the semicolon from behind the following line
;extension=php_mysqli.dll

Re: mysql "imporved" function don't work

Posted: Wed Apr 19, 2006 10:10 am
by mjmacarty
d11wtq wrote:
mjmacarty wrote:I am running php 5.1.2, and I can't get any of the mysql improved functions to work, i.e. mysqli().

Is there an extension that needs to be "turned on" in the php.ini file? Thanks for any help.
Is this linux or windows? Did you compile from source or install a binary?

If you compiled from source you should ensure you add --with-mysqli=/path/to/mysql at ./configure since PHP5 doesn't do it by default.

Does this need to be added to the path in Windows too?

Posted: Wed Apr 19, 2006 10:12 am
by feyd
Windows would follow Everah's post. If you don't have the DLL, download the zip version of PHP. It's in there.

Posted: Wed Apr 19, 2006 10:58 am
by mjmacarty
Thanks all. I made it work. Didn't need to add anything to the path, but my php.ini file did not have the extension line for php_mysqli.dll

Is that weird?

Posted: Wed Apr 19, 2006 11:27 am
by Oren
Which version of PHP do you have?

Posted: Wed Apr 19, 2006 11:33 am
by feyd
Oren wrote:Which version of PHP do you have?
mjmacarty wrote:I am running php 5.1.2

Posted: Wed Apr 19, 2006 11:59 am
by Oren
Well... Sorry about that. I've read your post but I replied to it latter on - after the guys had already helped you, and by then I already forgot that you mentioned the PHP version. Sorry.