|
|
Getting Php 5 To Work With Mysql - getting PHP 5 to work with MySQL | ||
Discussion by eskimmer with 0 Replies.
Last Update: August 16, 2007, 6:35 am | |||
![]() |
|
|
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://snaps.php.net/)
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 (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_mysql.dll');
else
dl('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 ......
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://snaps.php.net/)
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.
CODE
if (!class_exists('mysql')) {if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
dl('php_mysql.dll');
else
dl('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 ......
Similar Topics:
Mysql Php Apache Downloads And Se...
Mysql, PHP, Apache downloads were easy enough. Then came the setup process. This seemed to be an endless mess of going back and forth trying to get the programs to work together properly. Finaly I got them working after about 48 hours. There are great tutorials on the setup process, but only one or ...more
Php And Mysql Programming
Best Php And Mysql Editor For Noobs
Php Pages Permission On Apache Server PHP pages permission on Apache Server (1)
|
(2) Problem With A Mysql Join Problem with a mysql join
|
Loading...
HOME 





PHP and MYSQL - Connecting to a Database and Adding Data
PHP MySQL Tutorial: Connect to a MySQL Database -HD-
PHP Tutorials: MySQL Basics (Part 1/6)

