Introduction to Database Driven Development, PHP and MySQL



Author: Adam Knife

PHP is one of the "scripting languages" of the Web. It is an interpreted language, interpreted by the official PHP interpreter, developed specifically for web programming. Being quite similar to ASP in many ways, chances are a change from ASP to PHP would not be all that difficult for a seasoned developer who was experienced in a C-style language.


PHP, combined with Apache, or another web server handles all the "standard" web serving side of development; it watches for requests, it hands them off to the appropriate handlers, it sends the required headers, and it finalizes the job.

On it's own, PHP is a language capable of many simple things: date functions, file manipulation, mathematics, logic, all the traditional programming language stuff (including some very feature-filled mechanics for topics such as string manipulation and date manipulation) - but it doesn't expand in to the power given by database driven web applications. Luckily, there are standard libraries such as the MySQL library, which allow you to easily integrate databases in to your project.

A database is simply that, a collection of data. MySQL is both a relational database server, and query language. It allows users to easily create tables of information, which are sortable by a number of columns, and capable of handling millions of rows of information. Rather impressive when you look at it's simplicity.

MySQL (pronounced My Sequel) is an implementation of the popular SQL - "structured query language" - don't worry if you've never heard of SQL before - we'll get there in a later lesson. Information can be stored in a SQL database, and accessed in a range of different ways, manipulated, modified, and stored rapidly.

But wait, why the heck do we want to store our content in a database? Why not just store it in flat files? That's an easy question. If by flat files, you mean storing it in plain text files and loading it in to a PHP-powered templating system - the database is faster. If by flat files, you mean storing it in HTML files and linking them around, you've probably already answered your own question. HTML-only websites are messy, frequently ending up with hundreds of files, each with their own copy of the template, among other things. A simple change for an HTML-only site could take days to implement, where in a PHP-MySQL-powered site it would take minutes.

On top of that, by integrating PHP + MySQL in to your project you open a range of new uses. In the future you could set up a web-service for a software application to contact your database server and get the content, you could sell your database of content, or you could further manipulate the way the content is stored.

The advantages to a database driven, scripting language powered site are numerous, and you shall realize them more and more as you get deeper in to web development.

About the Author:
Adam X. Knife is a professional web developer and author of the new Code Hippo programming "blog"-style site. When he's not writing articles on programming, or developing code himself, he's reviewing laptops or MP3 Players. "


Total Word Count: 544
Click here to View more Articles at: Invision-Graphics
Invision-Graphics Article Source:

Approved on Sunday, November 05 @ 13:01:08 CST by Shawn DesRochers
 
Options
 Return to the main page Return Home

 Print Page Print Version

 Send to a Friend Send To A Friend

 Discuss Article Discuss Article

 Related Articles Related Articles

 Search Articles Search Articles

 Stories Archive Stories Archive

 Subscribe Newsletter Subscribe Newsletter

 Syndicate Article Topic: SQL XML News Feed

 Contact US Contact US
Article Rating
Average Score:
Votes: 0

Rate this article:
Introduction to Database Driven Development, PHP and MySQL

Introduction to Database Driven Development, PHP and MySQL – Aticle Rating 5 Stars
Introduction to Database Driven Development, PHP and MySQL – Aticle Rating 4 Stars
Introduction to Database Driven Development, PHP and MySQL – Aticle Rating 3 Stars
Introduction to Database Driven Development, PHP and MySQL – Aticle Rating 2 Stars
Introduction to Database Driven Development, PHP and MySQL – Aticle Rating 1 Star


Syndicate Article
 My Yahoo!
 Google
 NewsGator
 Stumbleupon
 PluckIT
 Rojo
 Bloglines
 My AOL
 Blogrolling
 ENewsblog
 NewsIsFree
 NetVibes
 del.icio.us
 Technorati
 Digg This
 FeedBurner
 FeedMailer
Sponsor Advertising
FREE Classified Ads
Post your free classified ads at Classifieds Depo.

Text Advertising Info Text Advertising Info
Support US

Make a donation!
If you enjoy our services, make a donation today!

Google Support Ads
Related Links
More about SQL
News by Admin


Advertise Here

Most read story about SQL:
Securing Backups in Microsoft SQL Server

Book Advertising
Get this Book Now
Buy this Book Now!
Click Here
Comment on Article:"Introduction to Database Driven Development, PHP and MySQL" Login | Create an Account | 0 comments
The following comments are owned by the individual who posted them. Invision-Graphics is not responsible for the content or the accuracy of the following statements.
No Comments Allowed for Anonymous, please Register
Related Categories
Technorati TagsTechnorati Tags


Click Here to Advertise
Affordable Hosting! http://www.invision-graphics.com/images/banners/468X60_VISIONHOSTING.gif
 Today: 5,764  Yesterday: 24,696  Total Hits: 1,797,721
Page Rendered in: 0.12s - Total Queries: 27 - MySQL DB: 9.3 mb's - Pages served in past 5 minutes: 130