Server-side scripting

From Wikipedia, the free encyclopedia

Server-side scripting is a web server technology in which a user's request is fulfilled by running a script directly on the web server to generate dynamic HTML pages. It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript. The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.

[edit] Explanation

In the "old" days of the web this was almost exclusively performed by using a combination of C programs, Perl scripts and Shell scripts using the Common Gateway Interface (CGI). Those scripts were executed by the operating system,nemonic coding and the results simply served back by the web server. Nowadays, these and other on-line scripting languages such as ASP and PHP can often be executed directly by the web server itself or by extension modules (e.g. mod_perl or mod_php) to the web server. Either form of scripting (i.e., CGI or direct execution) can be used to build up complex multi-page sites, but direct execution usually results in lower overhead due to the lack of calls to external interpreters.

Dynamic websites are also sometimes powered by custom web application servers, for example the Python "Base HTTP Server" library, although some may not consider this to be server-side scripting.

Server side script programming is run on the server side.

[edit] List of server-side scripting technologies

Any programming language can generate web pages through CGI or an extension module or application server framework. This section lists technologies designed mainly or exclusively for server-side scripting, typically by embedding instructions directly in template web pages.


ASP
Microsoft designed solution allowing various languages (though generally VBscript is used) inside a HTML-like outer page, mainly used on Windows but with limited support on other platforms.
ColdFusion
Cross platform tag based commercial server side scripting system.
JSP
A Java-based system for embedding code in HTML pages.
Lasso
A Datasource neutral interpreted programming language and cross platform server.
SSI
A fairly basic system which is part of the common apache web server. Not a full programming environment by far but still handy for simple things like including a common menu.
PHP
Common opensource solution based on including code in its own language into an HTML page.
Server-side JavaScript
A language generally used on the client side but also occasionally on the server side.
SMX
Lisplike opensource language designed to be embedded into an HTML page.

[edit] See also

In other languages