
Server-Side Processing
Server-side processing involves using the web server
to interpret and process input on a web page.
The files to be processed can be stored on the server and inserted into the
web page by the server when the user accesses the page.
Sorts of uses
(1) CGI Script Processing
A lot of serverside processing is run by serverside scripts
Those written in Perl, Python, C, C++ are commonly called CGI scripts (Common Gateway Interface) and will be linked to HTML pages to process tasks.
The script is created to do a specific job and is stored in a specific folder/directory
on the web server. (commonly called cgi bin) in your own web area or is held
on the central web server.To process it a command is embedded into your page
which is then acted upon by the server.
NB Your web account may not support CGI scripts - if it does you will have cgi-bin
and can use serverside scripts.
(PHP scripts and ASP, JSP scripts will be saved as separate pages on the server and not in a cgi-bin).
(2) PHP, ASP, JSP, and CFML
scripting technologies
These are termed 'server-side
processing technologies' and are other ways of processing forms and creating
dynamic web pages. The web server you are using must support scripts in these
formats.
Pages made using these languages are uploaded as normal to the main directory of the site, not into the cgi-bin.
Windows based servers commonly support ASP scripting and Linux based servers PHP scripting.
(3) Server-side Includes
The files to be processed can be stored on the server and inserted into the
web page by the server when the user accesses the page
This can be done by inserting a 'server-side include' into
your page or by using serverside processsing technologies.
There are different types of SSI each doing particular jobs
Examples of ssi footers
The Time and Date and Modified commands are echo commands and are ssi includes on this page
This is your local Date:
Saturday, 11-Oct-2008 20:26:24 GMT
Modification date of this page
Tuesday, 29-Jan-2008 11:34:27 GMT
| You can also insert an include as a file on any page simply by including the page with .ssi file name This file footer.ssi has no <html> or <head> or <body> tags which were deleted before saving and uploading to the server Copyright © 2003-5, WebDev Design This page was last modified Tuesday, 29-Jan-2008 11:34:27 GMT | Website webdevonline.org.uk |
|---|