Practical eCommerce

Manage Subscriptions · Subscribe Now · F.A.Q.'s

HOME · Saturday, July 5, 2008

Development & Programming

Use Scripting for Dynamic Websites

Customize your site for each visitor

By: Brian Getting
Comments: 1

One of the first tasks when planning a website is to develop a strategy for delivering content and functionality to visitors.

Since a website is a collection of HTML documents, the most basic approach is to simply code the information you want into these documents. Using this method results in what is called a “static” website since the content and functionality is hard-coded and each visitor will see the same content every time he visits your site.

In contrast, a developer might choose to create a “dynamic” website, one where the content is either pulled from a database, another external source or even be generated on the fly. By creating a dynamic website, the content is regenerated every time a visitor goes to the site, allowing developers to include content that is customized to each visitor.

Dynamic website content is made possible by using scripting languages. A scripting language is a type of computer programming that allows a developer to create a series of tasks that are completed as a computer interprets the code. When dealing with website, there are two fundamental types of scripting languages — server side and client side.

A server-side scripting language is one that is processed by the server, usually after a request has been made but prior to sending information back to the visitor making the request. Some common website scripting languages are PHP (Hypertext Preprocessor), ASP (Active Server Pages), Python and Perl. Server-side scripts require their own code, which is placed in the document on the server. When a user makes a request for a web page, rather than simply sending the document out to the user, the server processes the scripts in that document first, injecting the results of the script into the HTML stream that is sent to the user who requested it. For example, scripting languages are integral in accessing a database to retrieve content. After the user requests the page, a script is executed which queries the database and formats the results before injecting that content into the proper place before sending an HTML stream back to the user.

A client-side scripting language is one that is processed by the user’s computer, usually providing some sort of functionality that makes the user's experience more pleasant. Client-side scripts are sent from the server to a user’s web browser and executed when called for. Since all of the scripting code is passed to the user and executed on the user’s machine, requests to the server are not required. A common use for clientside scripts is to validate the information that a user has submitted in an online form. Rather than using server resources to validate this data, a client-side script can be executed when the form is submitted that will examine the data before it is sent to the server. In this way, server resources are not being consumed by validating forms as that task is performed before the server even gets a request.

Advertisement

Scripting languages can be intimidating at first. However there are many resources out there from which to learn and any developer who intends on building ecommerce websites will eventually need to embrace scripting.

Blinklist | Del.icio.us | Furl | Ma.gnolia | Newsvine | Spurl | Reddit | Technorati

Published on Monday, July 31, 2006

Comments:

Thank you for this easy to understand article. It gave me a better beginner's understanding of scripting than any textbook could! You were a great help!

Posted by: fivekitten
Thursday, March 06, 2008

↑ Back to Top

Leave a comment:

Please enter the following security code exactly as it appears.


Comments are stripped of HTML code upon submission. All comments are submitted for approval prior to being published. Please allow up to 24 hours for the approval process to take place. Practical eCommerce reserves the right to remove any comment at any time for any reason.

 


Related Articles

Articles at Practical eCommerce related to Use Scripting for Dynamic Websites:

Related Podcasts

Podcasts at Practical eCommerce related to Use Scripting for Dynamic Websites:

RSS 2.0 Feeds

Atom 1.0 Feeds

Technorati Tags

Ecommerce Articles

Browse All Articles
Browse our complete archive of ecommerce articles.
Accounting, Management & Legal
Ecommerce articles related to managing a small business including ecommerce accounting, business strategy and legal considerations.
Conversion & Usability
Online business articles about converting web site visitors into customers and how to gauge and improve your business website's usability.
Development & Programming
Articles to help designers, developers and programmers create successful, search engine friendly ecommerce websites and improve existing ones.
Hosting, Infrastructure & Software
Articles for ecommerce businesses about ecommerce web hosting, business infrastructure, business strategy and helpful ecommerce & small business software.
Interviews & Profiles
Interviews with prominent ecommerce business personalities and profiles of successful online businesses.
Inventory & Shipping
Ecommerce articles about inventory management, ecommerce order fulfillment and product shipping considerations.
Marketing & Revenue Growth
Articles relating to online marketing, email marketing and using the Internet to growing your business.
Search Engine Optimization
Search engine optimization articles for ecommerce business owners, strategists, marketers and developers.
Shopping Carts & Online Payments
Articles covering ecommerce shopping cart platforms and options for choosing an online payment gateway.
Training & Education
Tutorials and articles providing training and education for ecommerce business owners and developers of ecommerce websites.

Search Articles

Ecommerce Community

Ecommerce Blogs
Read our blogs about ecommerce topics written by industry professionals.
Community Forum
Connect with other ecommerce professionals to trade advice and answers in our community forum.
Podcasts
Check out our ecommerce podcasts covering topics ranging from interviews to tutorials.
RSS Content Feeds
Subscribe to our RSS feeds and have fresh ecommerce content delivered to you.

Ecommerce Resources

Free Email Newsletter
Sign up for Ecommerce Notes, our free email newsletter for ecommerce business owners and developers.
Ecommerce Directory
Browse our directory of ecommerce products and services, or submit your own listing in our directory.
Ecommerce Glossary
Familiarize yourself with terminology or submit terms to help others with our Ecommerce Glossary.
Events Calendar
Find out about upcoming ecommerce events or invite other ecommerce professionals by posting your own event.
Press Releases
Browse ecommerce related press releases and post your own press release for distribution.
Ecommerce Store & Back Issues
Pick up back issues of Practical eCommerce magazine along with other merchandise from Practical Ecommerce

About Practical eCommerce

Frequently Asked Questions
Look at frequently asked questions regarded using our website, subscribing to our magazine and more.
Advertising Information
Information about advertising in Practical eCommerce magazine, on our website, or in our email newsletters.
Editorial Sharing
Learn about options for sharing our content with your visitors, customers or employees.
About Us
Learn more about Practical Ecommerce magazine and meet our staff.
Contact Us
Contact Practical Ecommerce at any time for more information. We'd love to hear from you.
AdvertisementEndiciaBDXIArial Software

Copyright 2007 Confluence Distribution, Inc. and Practical eCommerce.
All Rights Reserved.

Privacy PolicyConditions of UseContact Us