Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Getting Php 5 To Work With Mysql, getting PHP 5 to work with MySQL
eskimmer
post Aug 16 2007, 01:35 PM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 21
Joined: 15-August 07
Member No.: 48,203



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.

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 ......
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Problem On Mysql "order By"(5)
  2. Increment A Mysql Column(6)
  3. Can You Add Images Into A Mysql Database?(20)
  4. Creating Profiles In Php/mysql ?(7)
  5. Php Search Engine Script For Mysql Database(11)
  6. How To Delete A Row In Mysql.(4)
  7. Importing .csv Into Mysql Database(6)
  8. Editing Information In A Mysql Database And Deleting Rows(5)
  9. Putting Data Of 2 Pages In Mysql At Once(1)
  10. Mysql Query(2)
  11. Simple Mysql Query Limiting(9)
  12. Some Mysql Basics(4)
  13. Php, Mysql, Apache(4)
  14. Php And Mysql Applications(3)
  15. Problem With A Mysql Join(2)
  1. The Artists Tutorials :mysql Basic Commands(0)
  2. [mysql]get Id Of Loged In User?(7)
  3. [mysql/php]need Som Basic Help(13)
  4. [php/mysql]id Trouble [resolved](3)
  5. Mysql Won't Update(4)
  6. Php + Mysql Question!(4)
  7. Tools Needed!(9)
  8. Best Sites For Learning Php-mysql(4)
  9. Php And Mysql Programming(2)
  10. Best Php And Mysql Editor For Noobs(6)
  11. Html Form!(4)
  12. Mysql Error(3)
  13. Create Table - Mysql Code - Help(1)


 



- Lo-Fi Version Time is now: 25th July 2008 - 08:43 PM