Monday, September 5, 2011

Static website VS Content Mangement System (CMS)

What is Static website
We can build website with Dreamweaver, Forntpage or GoLive. With this tools normally we create website that is called static website. Static web site are quite simple. When we type some address of static website in web browser then a request is sent to the server about the page from our PC or client computer. The server is then locate the page and send a copy of the page with it associates like CSS, flash files, java scripts etc back to our computer. The client then displays the page along with the other associates. This system is static as the page contains the fixed content. The server simply picks the right page from the right location and send it. No processing is required on that page. You create web pages in your computer and send it to server via FTP and the server stores it. When any request sent it then sent a copy back to the client computer.This what a static web site.
Static Web Page

Content Management System : CMS
A content management system or CMS is very different from static web site. A content management system or CMS is a web application software that runs on web server instead on the client. All CMS software generally functions in the same kind of way : the server software, the middleware software and the database may vary but the functionality is pretty much the same.

Now when we type a address of website that is maintained with CMS then a request is sent to the web server. The web server looks for the page and find out that it is written in PHP, a programming language. The  web server knows it can't sent this page to the client. Some processing must be done. So the webserver send request to PHP. The PHP looks for the document and determine whether something needs to be pulled from the database and then process. PHP functions here as middleware. PHP handles the conversation between server and the database. The server and the database can't talk to each other directly. They need translator. There are other programming language thats are also use like ASP, .NET, java etc.
CMS processing

The database receives requests from PHP via database query. The demanded information copied and send back to PHP. PHP arranges the database information as specified in code. The actual PHP codes are replaced with normal html code after processing complete. So after processing it only contains the html codes with its associate information which is then send back to the client computer

0 comments:

Post a Comment