Web server scripting is where script is ran on a web server
before the webpage loads in the users browser. This allows the files show to
the user to be customised for them, an example of this is social network sites,
they show a personalised newsfeed based on you account login.. this creates
dynamic custom websites instead of static pages. Web server scripting is
different from client side because it cannot be seen by the user and is
executed on the server not in the clients bowser.
Different web server scripting languages
PHP is an acronym that stands for hypertext pre-processor,
it is one of the most widely used scripting languages and is mainly used in CMS
systems to access databases. PHP is free and open source. It is also regularly
This is web server script created by Microsoft, it will
usually only run on windows based servers. It stands for Active Server Pages.
VBScript is used in asp pages
JSP is similar to ASP however it relies on Java instead of
VBScript, because it uses Java, code can be place into standard HTML pages to
create dynamic pages.
This is a scripting language which allows database
command to be used in HTML pages. The language was developed by Adobe. The
script uses ColdFusion Application Server to pre process pages
Perl is a high level language which is related strongly to
C. Perl is a free to use and open source scripting language and is able to be
used in web apps that need assess to databases.
Ruby on Rails
This is a Ruby framework which is commonly used for web
apps. The main difference between other frameworks is the speed at which
developers can code applications. Rails
is a model–view–controller (MVC) framework, providing default structures for a
database, a web service, and web pages.
Another framework used for web applications,
however for apps written in Python. The framework aims to simplify the
development of database driven websites and and it also uses the MVC principle.
Django has the benefit of being scalable to any size application.
Web Server Scripting Functionality:
Web server scripting can help create dynamic custom aspects
for websites, below are a few examples.
Many ecommerce websites use shopping baskets, these allow
the user of the website to add items they wish to purchase into a virtual
basket and carry on shopping. When they wish to complete a purchase they can
review their basket and pay. A shopping cart allows users to not have to by
every item on each new webpage. Sites that use this include Amazon, Ebay and
sites such as Facebook and twitter use user
profiles. The user will sign in and a customised page will show. An example of
this is a Facebook newsfeed. Everyone’s newsfeed is different because they are
signed in with their own account
Some sites allow you to upload files such as images or word
documents. This involves server scripting as it stores the file in the server
Web server scripting allows users to reserve products. The
reserve order will be sent to the server and when the server detects the user
returning by using cookies and mac addresses, the server will retrieve the
A website can record visits and information about the user.
This is recorded in a database and the website can then display details to the
users if requested or as a feature of the website. Information on the user can
be, browser used, ip address and number of visits.