English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to know about definition of static & dynamic web sites? which one is better & why?

2006-07-17 02:51:17 · 9 answers · asked by NASIM N 1 in Computers & Internet Programming & Design

9 answers

With static web sites, requests for pages are handled by a web server delivering the content of these HTML files, "as is". They are called static because they don’t change very often.

With dynamic web sites, requests for pages are a bit more complicated. For each request, the page (the HTML) is constructed from information stored in files (such as images), information stored in databases (textual content) and programming logic.

For More Info Visit Links:
http://www.purpleoarsoftware.com/static-v-dynamic
http://inasite.com/resources/article.asp?article_id=2

I suppose this Helps.

2006-07-17 03:00:47 · answer #1 · answered by ♥HotIce♥ 3 · 1 0

A static web site has content on its pages that never changes (or, at least doesn't change unless you actually hand-edit the pages). A dynamic web site has programming and scripts and maybe databases behind it, so each time a person sees the page, it could be generated a little differently. A simple example would be a page that showed the current time.

If you can do what you need to do with a static web page, that would be the better way, because they are fast, easy to maintain, and harder to hack. If you have database data or other constantly changing (dynamic info), then you'll have to use dynamic web pages.

2006-07-17 09:56:28 · answer #2 · answered by Rjmail 5 · 0 0

Of all the various ways you can make your site, your pages will more or less fall into one of two categories; dynamic or static. While the differences may seem obvious at first, the distinction becomes rather blurred at the edges when you try to categorize your work into one of the two types. Indeed, you might not feel the need to know the nature of the pages you are building, but more often than not your type of page could have an effect on the type of software that is best for the job.
So what's the difference?
Essentially, static pages are those on your site that send exactly the same response to every request; dynamic pages can customize the response on the server to offer personalization based on cookies and information it can get from the visitor.
An obvious example of a static page is an old style HTML document; the only way to change a HTML page is to upload a new or updated version in its place. Every time a static file is downloaded, the file contents that are sent to the browser are the same for everyone that accesses that file.

While most pages written in a particular scripting language will return a personalized response to each visitor, this is not always the case; the same is true for pages utilizing Server Side Includes. Suppose for a moment that you had two SHTML documents, both of which include a single file; the first including a simple HTML snippet for the menu, the second including an online poll script. The page including the menu would be static; the menu would be the same for everyone that downloaded it until either of the files were changed on the server. The page that included the poll however would be dynamic, as it would display different pages to people depending on their previous voting history.
Flash and Shockwave presentations are also classed as static content; despite the fact that user interaction can lead to different ways of presenting the same data, everyone will download the same file from the server.
Static Pages
Most of these advantages and disadvantages apply to normal HTML pages in particular.
Advantages
Quick and easy to put together, even by someone who doesn't have much experience.
Ideal for demonstrating how a site will look.
Cache friendly, one copy can be shown to many people.
Disadvantages
Difficult to maintain when a site gets large.
Difficult to keep consistent and up to date.
Offers little visitor personalization (all would have to be client side).
Dynamic Pages
Typically written in various scripting languages or technologies such as ASP, PHP, Perl or JSP.
Advantages
Offers highly personalized and customised visitor options.
Database access improves the personalized experience (as opposed to using just client side cookies)
Scripts can read in data sources and display it differently depending on how it is run.
Can create the illusion of being updated regularly using time and date sensitive routines (or even randomisers) to display pre-written text.
Disadvantages
Personalized pages are not very cache friendly.
Requires a basic minimum knowledge of the language being used.
Scripts need more consideration when uploading and installing, particularly to *nix servers.
How does the page type affect the way I work?

I've found that webmasters can also be split into two main categories; the coders and the designers. In general, coders will prefer to build dynamic pages, while the designers prefer to produce the more fancy static pages. That's not to say that the coders don't design or the designers don't code; just that they tend to concentrate on what they know best.
From my observations I have made in various debates about which editor is the best, the coders usually opt for a text-based editor such as TextPad or BBEdit, while the designers prefer WYSIWYG (What You See Is What You Get) editors such as FrontPage or Dreamweaver. Each approach has its benefits and drawbacks, the details of which are best left to another discussion; but by either design or default, dynamic pages are usually built using a text based editor while static pages are often built with the WYSIWYGs.

2006-07-17 10:04:46 · answer #3 · answered by Bolan 6 · 0 0

The information in static web sites are same to everyone, and you cannot do complex work with them.
But the information in dynamic web sites can change for each person, and you could do professional works.For example, you could welcome your visitor and say "Hello Tommy...", and you could store Tommy's country information, and so on...
Dynamic web site is surely much better, but you have to learn much more technologies to do a dynamic web-site, so good luck :)

2006-07-17 10:05:27 · answer #4 · answered by mdy 2 · 0 0

A static site just has text and pictures on it. Just one-way information. The user can read it, but he can't 'do' anything with the website.
A dynamic website has a database or something that you can interact with. Like a website from a store that has a shopping cart.

2006-07-17 09:57:05 · answer #5 · answered by OMG, I ♥ PONIES!!1 7 · 0 0

A static site uses simple X/HTML, CSS, etc. to display its information. What information it contains is hard-coded into the page.

This is a static HTML page:



My Static Page


Hello, visitor!





A dynamic page uses a scripting language, such as PHP or ASP.NET, to generate content. The content can change based on any of a number of variables: The input a user gives you from a form, the time of day, values retrieved from a cookie, etc.

This is a dynamic page in PHP:



My Dynamic Page


$now = time();
$now = date('F j, Y g:i a', $now);
echo "

Hello, visitor! It is $now.

";
?>

2006-07-17 10:59:26 · answer #6 · answered by Anonymous · 0 0

Dynamic pages have content that can change for each user visiting the website.

Static pages have content that doesn't change.

2006-07-17 09:54:48 · answer #7 · answered by Carsten 2 · 0 0

dynamic websites use animation features ( ex: for the banner), Static sites don't.

2006-07-17 10:29:14 · answer #8 · answered by sam s 1 · 0 0

i dont know-sorry

2006-07-17 09:54:12 · answer #9 · answered by hanifrng 3 · 0 0

fedest.com, questions and answers