Jump to content

Recommended Posts

I posted this in MySQL help, but I think that is the wrong place...

 

I have installed MySQL on IIS 6 with PHP, but PHP cannot use the mysql functions.  I have the libmysql.dll file in 3 places-C:\Windows,C:\Windows\system32, and C:\Windows\system.  The PHP version is 5.2.6 and MySQL is version 5.

 

Any Ideas.

 

My php.ini file is attached.

 

Help would be MUCH appreciated!

 

And yes, I have looked at the tutorial linked from the PHP Help forum.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/107839-mysql-functions/
Share on other sites

OK first of remove any files which you have moved outside of the php directory. Download the php zipped binaries distrubuton from php.net rather than the installer. Extract the contents of the zip to where you install PHP to (I presume C:\php) making sure you overwrite existing files/folders.

 

Now restart IIS. Make a new file call this file phpinfo.php add the following code

<?php phpinfo(); ?>

Now run this file from your website. Look for the line that begins with Loaded Configuration File

The file path stated to the right of that line should be the correct path to the php.ini your are editing. If its set to (none) then PHP is not reading your php.ini and thus the mysql extension is not loading. Make sure your php.ini is in your PHP folder. If PHP is added to the PATH correctly it should load the php.ini from your PHP Installation folder. Restart ISS and re-run the phpinfo.php script and PHP should now be reading your php.ini

 

If its now reading the php.ini it should now be able to load the mysql extension(s) too. Check by scrolling down the pageooking for the MySQL and MySQL Improved sub headings/sections.

Link to comment
https://forums.phpfreaks.com/topic/107839-mysql-functions/#findComment-552823
Share on other sites

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.