Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
SlideShare a Scribd company logo
Web Server Scripting
 What is Web Server Scripting?
 What are the principles of WSS?
 What are three different WSS languages?
Web Server Scripting
Your PC
(Client)
Hosting Server
(Web Server)
Requests
HTML
Pages
Sends HTML
Pages
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
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
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
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
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
Web Server Scripting
Three Different Web Server
Scripting Languages:
PHP
ASP.Net
Java Server Pages
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
Web Server Scripting
JSP – Java Server Pages
Run Java Code
More complex language
Uses JSP compiler
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.
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
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
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).

More Related Content

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
  • 8. Web Server Scripting Three Different Web Server Scripting Languages: PHP ASP.Net Java Server Pages
  • 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).