getting PHP 5 to work with MySQL - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > PHP » getting PHP 5 to work with MySQL


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 07-12-2006   #1 (permalink)
jason
Junior Member
 
Join Date: Jul 2006
Age: 33
Posts: 27
Default getting PHP 5 to work with MySQL

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 (!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..
Jason
jason is offline   Reply With Quote


Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL GUI joey Programming 4 09-01-2008 07:00 PM
IMAP and Courier w/ MySQL daeos Site and Server Administration 1 10-12-2006 08:51 AM
What MySQL Version are you running? SMF For Free Programming 9 09-30-2006 06:48 AM
Tracking Cookies, with MySQL and CGI.pm Ankita Perl 0 08-19-2006 10:43 AM


footer left
All times are GMT. The time now is 12:11 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Loans | Free Ringtones | The eBay Song | Mobile Phones | Loans

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49