Upload
sayed-ahmed
View
39
Download
0
Embed Size (px)
Citation preview
SERVER SIDE PROGRAMMINGCOURSE: COMP 1006 INTRO TO WEB PROGRAMMING
Sayed AhmedB. Sc. Engineering in Computer Science & Eng.M. Sc. in Computer Science
[email protected]://sayed.justetc.net
DISCUSSION TOPICS Explain
Client Side Programming Server Side Programming
Web Site Structure Demonstrate with Examples
Example Application User Profile Management
Will demonstrate both Server Side Scripting Client Side Scripting
11/6/2011
2
UNDERSTANDING CLIENT AND SERVER SIDE SCRIPTING Web-Site Structure
Steps1. Request Content2. Get response back
Additional Steps 1.x Execute a script in the client side 2.x: Execute a script in the server side
Calculate something Retrieve data from a database
3. Execute script in the client side
11/6/2011
3
DEFINITION Client Side Scripting
computer programs on the web that are executed client-side, by the user's
web browser JavaScript Jquery VBScript
Server Side Scripting computer programs on the web
that are executed server-side usually used to provide interactive web sites
that interface to databases or other data stores PHP Perl Ruby JSP
11/6/2011
5
DEMONSTRATION WITH EXAMPLES User Profile Management
Scenario: For a publishing company we want to develop
a web-based profile management system User Interfaces
User Login Page Success Page:
On login display user information with edit operations
Error Page On login failure display error message Also, show login option
11/6/2011
6
DATA STORAGE Data Storage
user user_details
Table Structure user
user_details
id username password1 fred *********
name email phone
Im Web about
11/6/2011
10
RESOURCES http://justetc.org/web_dev/index.txt http://www.justetc.org/web_dev/
edit_profile.txt http://justetc.org/web_dev/database.jpg
11/6/2011
16