Introduction Web server scripting is where script is ran on a web serverbefore the webpage loads in the users browser.
This allows the files show tothe 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 createsdynamic custom websites instead of static pages.
Web server scripting isdifferent from client side because it cannot be seen by the user and isexecuted on the server not in the clients bowser. Different web server scripting languages PHP-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 CMSsystems to access databases. PHP is free and open source. It is also regularlyupdated.ASPThis is web server script created by Microsoft, it willusually only run on windows based servers. It stands for Active Server Pages.VBScript is used in asp pagesJSPJSP is similar to ASP however it relies on Java instead ofVBScript, because it uses Java, code can be place into standard HTML pages tocreate dynamic pages.
ColdFusion This is a scripting language which allows databasecommand to be used in HTML pages. The language was developed by Adobe. Thescript uses ColdFusion Application Server to pre process pages PerlPerl is a high level language which is related strongly toC. Perl is a free to use and open source scripting language and is able to beused in web apps that need assess to databases.
Ruby on RailsThis is a Ruby framework which is commonly used for webapps. The main difference between other frameworks is the speed at whichdevelopers can code applications. Railsis a model–view–controller (MVC) framework, providing default structures for adatabase, a web service, and web pages.DjangoAnother framework used for web applications,however for apps written in Python. The framework aims to simplify thedevelopment 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 aspectsfor websites, below are a few examples.
Shopping carts Many ecommerce websites use shopping baskets, these allowthe user of the website to add items they wish to purchase into a virtualbasket and carry on shopping. When they wish to complete a purchase they canreview their basket and pay. A shopping cart allows users to not have to byevery item on each new webpage. Sites that use this include Amazon, Ebay andAsos etc..User profiles sites such as Facebook and twitter use userprofiles.
The user will sign in and a customised page will show. An example ofthis is a Facebook newsfeed. Everyone’s newsfeed is different because they aresigned in with their own account File uploading Some sites allow you to upload files such as images or worddocuments. This involves server scripting as it stores the file in the serverside database.Reserving products Web server scripting allows users to reserve products. Thereserve order will be sent to the server and when the server detects the userreturning by using cookies and mac addresses, the server will retrieve thereserved item.Website analytics A website can record visits and information about the user.
This is recorded in a database and the website can then display details to theusers if requested or as a feature of the website. Information on the user canbe, browser used, ip address and number of visits.