A dynamic web site is opposite static web site, here web pages not fixed as static web site, changes will be done according to clients by own ends. Dynamic websites will make the most of your website and either use it as a tool or create a professional, attention-grabbing experience for your visitors.
A dynamic site is one that is written using a server-side scripting language such as PHP, ASP, JSP, or Coldfusion. In such a site the content is called in by the scripting language from other files or from a database depending on actions taken by the user.
A server-side dynamic web page is a web page whose construction is controlled by an application server processing server-side scripts. In server-side scripting, parameters determine how the assembly of every new web page proceeds, including the setting up of more client-side processing.
Classical hypertext navigation, with HTML or XHTML alone, provides “static” content, meaning that the user requests a web page and simply views the page and the information on that page.
However, a web page can also provide a “live”, “dynamic”, or “interactive” user experience. Content (text, images, form fields, etc.) on a web page can change, in response to different contexts or conditions.
There are two ways to create this kind of effect:
Using client-side scripting to change interface behaviors within a specific web page, in response to mouse or keyboard actions or at specified timing events. In this case the dynamic behavior occurs within the presentation.
Using server-side scripting to change the supplied page source between pages, adjusting the sequence or reload of the web pages or web content supplied to the browser. Server responses may be determined by such conditions as data in a posted HTML form, parameters in the URL, the type of browser being used, the passage of time, or a database or server state.
Web pages that use server-side scripting are often created with the help of server-side languages such as PHP, Perl, ASP, ASP.NET, JSP, ColdFusion and other languages. These server-side languages typically use the Common Gateway Interface (CGI) to produce dynamic web pages. These kinds of pages can also use, on the client-side, the first kind (DHTML, etc.).
The innerHTML property (or write command) can illustrate the client-side dynamic page generation: two distinct pages, A and B, can be regenerated (by an “event response dynamic”) as document.innerHTML = A and document.innerHTML = B; or “on load dynamic” by document.write(A) and document.write(B).
All of the client and server components that collectively build a dynamic web page are called a web application. Web applications manage user interactions, state, security, and performance.
Ajax uses a combination of both client-side scripting and server-side requests. It is a web application development technique for dynamically interchanging content, and it sends requests to the server for data in order to do so. The server returns the requested data which is then processed by a client-side script. This technique can reduce server load time because the client does not request the entire webpage to be regenerated by the server’s language parser; only the content that will change is transmitted. Google Maps is an example of a web application that uses Ajax techniques.
A web client, such as a web browser, can act as its own server, accessing data from many different servers, such as Gopher, FTP, NNTP (Usenet) and HTTP, to build a page. HTTP supports uploading documents from the client back to the server. There are several HTTP methods for doing this.
Easy To Update: The biggest advantage of a dynamic website is that it can be easily updated as per the needs of the business owner. No expert knowledge is needed in changing the dynamic website and any a single change in the template file would bring the design change in all the pages with that particular file.
Interactive: Dynamic websites interact with the users and changes according to their behavior.
Quick To Responsiveness: A dynamic website can be quickly updated to become responsive to various screen sizes that was impossible with a static one.
Smooth Navigation: A dynamic website offers a smoother navigation and lets the user jump from one page to the other without any problem.
Higher Cost: Dynamic websites can cost big bucks in their development and even the hosting cost is high. However, once developed they would not cost additional money for any updates or changes.
Slow Processing: Having a number of functions to perform with complex technology, the dynamic websites becomes slower to process and load.
After going through the advantages and disadvantages of both dynamic and static website, a conclusion that can be formed is that a dynamic website, although costing high, is a better approach for website development. It is a one-time investment and can be beneficial for scaling any business online.
These are few advantages and disadvantages of both dynamic and static website. The utility and resourcefulness of both types of websites depend on specific needs and purposes. Where few people prefer the simplicity and ease of static websites, few other are fascinated with the rich-functionality and intuitiveness of dynamic websites. Both have their own advantages and limitations.