Saturday, April 16, 2011

DEVELOPING STATIC AND DINAMIC WEBPAGE

The Difference Between Static and Dynamic Websites.

Static Websites

A static site is a website that is written entirely using HTML. Each web page is a separate document and there are no databases or external files that are drawn upon.

This means that the only way to edit this type of website is to go into each page and edit the HTML. So you would have to do it yourself using a web page editor such as FrontPage or Dreamweaver, or pay your web developer to make updates for you.

Dynamic Websites

A dynamic website is written using more complex code — such as PHP or ASP — and has a greater degree of functionality. For instance, many dynamic websites can be controlled by a content management system. This means that you will potentially be able to make updates without needing any knowledge of HTML or any website software.

Each page of a dynamic website is generated from information stored in a database or external file. And the content management system that you may use to maintain your website directly modifies this stored information.Which Should You Choose?

Many people prefer dynamic websites because they have a lot of benefits. Dynamic sites reduce ongoing maintenance costs, make data management very efficient, and enable the addition of any future addons such as data feeds or a comprehensive site search. They also make it impossible to destroy the layout, as might happen if you edit it from a web page editor.

There are some drawbacks to using dynamic websites. First, they usually cost more to develop, because they require more complex coding, as well as the development of a content management interface to enable you to maintain your website. Second, you will need to obtain web hosting which supports databases and dynamic languages. Fortunately, most hosts do offer these features by default.

DEVELOPING STATIC WEBPAGE.

  • HTML coding
  • Using software like adobe dreamweaver, microsoft frontpage, notepad.

DEVELOPING DYNAMIC WEBPAGE

1. You need server-side scripting

a) ASP

Operating system - Windows

Testing server - Internet Information Services (IIS)

Database - Microsoft Access

Connection - ("Driver={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("/data/db1.mdb")

b) PHP

Operating system - Linux

Testing server - Apache

Database - MySQL (because access can't manage and handle huge-size of databases)

  • can run under Windows OS
  • need to install xampp (How to install - click here)
Connection - (using MySql - click here)


STEP IN DEVELOPING DYNAMIC WEBPAGE

1. Create a database first (Using Ms Access or MySql).
2. Create a connection to the database in Dreamweaver.
3. Create an ASP/PHP file (consists of form and textfield).
4. Use insert record to save the data into database.
5. Create an ASP/PHP file to view back data from the database.
6. Use recordset to view the data from the database.
7. Use repeat region to view all data.

No comments:

Post a Comment