Jump to content

Recommended Posts

Running php5.1.2 with Apache 2.0 Handler with MySQL 4.1.13 on SUSE 10.

I can run php with mySQL connect and query database via procedure calls but not by object. I get this error:

Fatal error: Class 'mysqli' not found in /usr/local/apache2/htdocs/results.php on line 31

I must have left something out in the configuration?????????? I have been looking in the docs but have not found my answer.

Anyone have the answer?

Thanks much.

kdthiele@nc.rr.com
Link to comment
https://forums.phpfreaks.com/topic/8290-miss-configured-where-is-mysqli/
Share on other sites

[!--quoteo(post=368113:date=Apr 24 2006, 02:42 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 24 2006, 02:42 PM) [snapback]368113[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Of you want to use mysqli specified functions you will need to configure PHP to use the mysli extension rather than the mysql extension.
[/quote]

Ok, but how do I do that? If I include mysqli extension and remove mysql extension will both work???

BTW thanks so far.
I believe you will have to recomile PHP5 to use to the mysqli extension rather than using a pre-packaged rpm unless there is one already available. If you want to see how to recomile PHP you might want to look at [a href=\"http://tedi.heriyanto.net/papers/html-php5-suse.html\" target=\"_blank\"]this[/a], however thats for 9.2 Pro

If you enable mysqli but no mysql then you will only be able to use mysqli functions and not any mysql functions. If you want to use both mysqli functions and mysql functions you will want to enable both extensions.
[!--quoteo(post=368323:date=Apr 25 2006, 03:36 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Apr 25 2006, 03:36 AM) [snapback]368323[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I believe you will have to recomile PHP5 to use to the mysqli extension rather than using a pre-packaged rpm unless there is one already available. If you want to see how to recomile PHP you might want to look at [a href=\"http://tedi.heriyanto.net/papers/html-php5-suse.html\" target=\"_blank\"]this[/a], however thats for 9.2 Pro

If you enable mysqli but no mysql then you will only be able to use mysqli functions and not any mysql functions. If you want to use both mysqli functions and mysql functions you will want to enable both extensions.
[/quote]


Thanks much!! thanks for the links too. I will give it a try.

I am still a bit confused on the terminology of client library. Sorry I am being so dense,

"If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts."
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.