Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
PHP Tutorial: Using ADODB to port your MySQL code
(Dec 17th, 15:14:53 )

"PHP is all about creating dynamic web-sites with the least fuss and the most fun. To create these websites we need to use databases to retrieve login information, to splash dynamic news onto the web page and store forum postings. So let's say we were using the popular MySQL database for this. Your company has done such a fantastic job that the Web site is more popular than your wildest dreams. You find that MySQL cannot scale to handle the workload; time to switch databases."

"Unfortunately in PHP every database is accessed slightly differently. To connect to MySQL, you would use mysql_connect(); when you decide to upgrade to Oracle or Microsoft SQL Server, you would use ocilogon() or mssql_connect() respectively. What is worse is that the parameters you use for the different connect functions are different also.. One database says po-tato, the other database says pota-to. Oh-oh."

"A database wrapper library such as ADODB comes in handy when you need to ensure portability. It provides you with a common API to communicate with any supported database so you don't have to call things off."

Complete Story

Related Stories:
AbriaSoft Releases Abria SQL Standard 2.1 With SSL-Ready Secure Apache Server, Red Hat 7.0 And ODBC Support(Dec 04, 2000)
Connecting to MySQL with PHP(Dec 02, 2000)
PHPBuilder: Open Source Databases: As The Tables Turn(Nov 23, 2000)
OSFAQ: How to create a database driven website (PHP/MYSQL)(Nov 05, 2000)
Why and How I Installed PHP4, MySQL, and Apache on Windows 98(Sep 27, 2000)
PHPBuilder: MySQL and PostgreSQL Compared(Jul 07, 2000)
dotcomma: Efficient SQL in PHP(Jun 11, 2000)
DevShed: The Soothingly Seamless Setup of Apache, SSL, MySQL, and PHP(Jun 09, 2000)
PHP 4.0 -- Dynamic Content for the World Wide Web Warrior(May 25, 2000)


Printed from Apache Today (https://apachetoday.com).
https://apachetoday.com/news_story.php3?ltsn=2000-12-17-001-12-PS-PH-MQ

About Triggers Media Kit Security Triggers Login


All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/