471,107 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Php5/mysql5

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
4 1364
ronverdonk
4,258 Expert 4TB
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
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
6,050 Expert 4TB
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
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.

Similar topics

12 posts views Thread by Sarah Tanembaum | last post: by
reply views Thread by Centurion | last post: by
1 post views Thread by Tony | last post: by
5 posts views Thread by Aziz | last post: by
1 post views Thread by Mitul | last post: by
1 post views Thread by arunsuriindia | last post: by
2 posts views Thread by wannabe | last post: by
1 post views Thread by Gilles Ganault | last post: by

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.