|

List Home > Programming / Scripting > [ Post New Problem ]
Welcome back !
| TrackingID : | 247 |
| Posted : | Sunday, November 23rd, 2003 07:37:36 AM |
| By : | bigjon |
| getting PHP 5 to work with MySQL? | Configuration: |
How can I get PHP5 to work with MySQL?
Additional Comments: Please help its urgent.
| Operating System : MS Windows XP
|
Related Problems : Comments :
Re: getting PHP 5 to work with MySQL? by Anonymous Ghost on November 23rd, 2003 07:41:11 AM 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 before calling any mysql function for first time.
i.e include it in each file which needs access to database.
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 ......
By the way the other way isusung ODBC for MySQL using MyODBC Driver from :
http://www.mysql.com/downloads/api-myodbc-3.52.html
So good luck coding.. |
Re: getting PHP 5 to work with MySQL? by Anonymous Ghost on September 27th, 2004 12:48:49 PM I had the same problem. After I copied the two dlls into the System32 folder it worked. |
Related Problems :
List Home > Programming / Scripting > [ Post New Problem ] |
|