Jump to content
xisto Community
Sign in to follow this  
eskimmer

Getting Php 5 To Work With Mysql getting PHP 5 to work with MySQL

Recommended Posts

Just thought this would be of extreme help to those who are planning to migrate to php5 and still continue using MySQL same way as before:....

to get mysql work with the php 5 copy /dll/libmySQL.dll to the directory where php 5 resides and copy the /extensions/php_mysql.dll to the directory where php.exe resides.(if you can't find the two above files probably you are using an old release of php 5.you should check for latest at :http://forums.xisto.com/no_longer_exists/)

in additon uncomment extension line in php.ini
and add the following code to a gnereal database file(dbcon.php) in my case and include it in each file which needs access to datanase.

if (!class_exists('mysql')) {if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')dl('php_mysql.dll');elsedl('php_mysql.so');}


I tried to eliminate above code and leave php_mysql.dll in extensions directory. But it didn't work shouting the familiar dialouge: Unable to load ......

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.