By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,831 Members | 2,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,831 IT Pros & Developers. It's quick & easy.

Php5/mysql5

P: 4
Hi

I've visited a lot of forums regarding getting MySQL5 working with PHP5 in IIS and it seems that with MYSQL5 you need to use mysqli in PHP and that you need to uncomment the extension in php.ini

However I have tried both of these and I still get the error:

Fatal error: Call to undefined function mysqli_connect()

I was wondering if somebody can help? It's probably something simple I've forgot to do.

Thanks

Alex
Feb 20 '08 #1
Share this Question
Share on Google+
4 Replies


ronverdonk
Expert 2.5K+
P: 4,258
You do not HAVE to use mysqli when you use PHP 5. You can just continue with MySQL.

Have you stored the .dll in a reachable folder that is in the nysql path?
As with enabling any PHP extension (such as php_mysqli.dll), the PHP directive extension_dir should be set to the directory where the PHP extensions are located
Ronald
Feb 20 '08 #2

P: 4
You do not HAVE to use mysqli when you use PHP 5. You can just continue with MySQL.

Have you stored the .dll in a reachable folder that is in the nysql path?
Ronald
I tried using mysql as well but that didn't work either. I just looked in my php.ini file and the extension directory seems right and the mysqli dll file is enabled. I've also added C:/PHP/ to the path. There's probably something very simple I'm doing wrong but I have no idea what it is.
Feb 20 '08 #3

Markus
Expert 5K+
P: 6,050
I tried using mysql as well but that didn't work either. I just looked in my php.ini file and the extension directory seems right and the mysqli dll file is enabled. I've also added C:/PHP/ to the path. There's probably something very simple I'm doing wrong but I have no idea what it is.
It would help to see your connection code...
Feb 20 '08 #4

P: 4
It would help to see your connection code...
My Connection code is as follows (without user/password):

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3. $link = mysqli_connect("mysql8.streamline.net", "", "");
  4.  
  5. ?>
  6.  
I dont think that is the problem as I've tried it on a working Apache Server with PHP and MySQL and it works fine. PHP works fine on the IIS Web Server except the mysql functions just aren't recognised. If somebody has got php5.25 working with mysql I would be appreciative if I could see the php.ini file and php directory as I could be missing a line of code or a file somewhere.
Feb 22 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.