This document discusses web server scripting, including what it is, its principles, and three common languages - PHP, ASP.Net, and Java Server Pages. Web server scripting involves server-side processing of requests from clients to dynamically generate and send HTML pages. It allows for features like security, database integration, and cookie/session management. The languages differ in things like open source vs proprietary, ease of use, and platform support.
Streamlining Python Development: A Guide to a Modern Project Setup
Week one presentation principles of web server scripting
1. Web Server Scripting
What is Web Server Scripting?
What are the principles of WSS?
What are three different WSS languages?
2. Web Server Scripting
Your PC
(Client)
Hosting Server
(Web Server)
Requests
HTML
Pages
Sends HTML
Pages
3. Web Server Scripting
Your PC
(Client)
Hosting Server
(Web Server)
Requests
HTML
Pages
Sends HTML
Pages
Client Side
Processing:
CSS, JavaScript
Server Side
Processing:
PHP – puts pages
together
4. Web Server Scripting
e.g. Amazon.co.uk: You click on a link requesting a
product. The PHP template is found:
Amazon
Logo
Your Account information
Product Information from Database
5. Web Server Scripting
This is turned into a HTML document and sent to your PC.
There may be CSS commands and JS in the document:
this is processed by YOUR computer.
Amazon
Logo
Your Account information
Product Information from Database
6. Web Server Scripting
Server Side vs Client Side
Client Side – Executed on the host computer i.e. PC
Client Side– Danger of malicious attacks
Client Side– uses host PC resources
Client Side– Code is viewable
7. Web Server Scripting
Server Side vs Client Side
Server Side – Executed on the Server
Server Side – Less danger of attack on the host PC
Server Side – Uses Server resources
Server Side – Code is hidden
9. Web Server Scripting
PHP – PHP HyperText PreProcessor
Web pages are generated by PHP code.
Open Source and cross platform
Easy to link to database platforms such as MySQL
Relatively easy to use
10. Web Server Scripting
JSP – Java Server Pages
Run Java Code
More complex language
Uses JSP compiler
11. Web Server Scripting
ASP.Net
Simple to use
Contains built in controls
Quick to execute
Specific to Windows
Costs money for licence and to implement.
12. Web Server Scripting - Features
In general – Features which are advantages of
Server Side are:
Increased security of code
Ease of use and integration
No need for CGI (Common Gateway Interface)
Multi Platform
Multi Language
In general – disadvantages of Server Side are:
Greater complexity of creating websites
Reduced performance where scripts are interpreted
13. Web Server Scripting -
Functions
What do we use Server Side for?
Functions of Server Side Languages include:
Create / Use Cookies and Session Management
Security and Log In Procedures
Web Content Management
Administration
Logfile Analysis
Upload and Download of files
14. Web Server Scripting -
Accessibility
Accessibility – How can PHP help
people with impairments to access
websites?
Can redirect to alternative text
versions
Support for resizable fonts
Support for Text Readers
Support for user adjustable fonts
(often done with support of CSS).