Title: IT 3501 Web Development Techniques Programming Optional
1IT 3501 Web DevelopmentTechniques
Programming(Optional)
2Web address of BIT web sitehttp//www.ict.cmb.ac.
lk/bit.htm
- E-mail address
- IT 3501 - wdt_at_ict.cmb.ac.lk
-
3 Major Topics
ICT
4 - Processing on the Web
- Client-side
- Server-side
ICT
5 - Client-side programming
- JavaScripts
- Handling of forms
- Mouse sensitive events
ICT
6 - Server-side Programming
- Common Gateway Interface
- PERL 5
- NCSA, Apache http servers
- Linux
ICT
7 - Writing CGI Scripts with PERL 5
- for Apache http servers
- (NCSA http server)
- httpd.conf
- srm.conf
- access.conf
ICT
8 - httpd.conf controls how your server
- actually runs
- UID and GID the standalone server
- uses as it runs
- ServerAdmin
- webmaster_at_ict.cmb.ac.lk
- ServerRoot
- /usr/local/etc/httpd
- ServerName
- www.ict.cmb.ac.lk
ICT
9 - httpd.conf controls
- ServerType
- standalone or inetd
ICT
10 - srm.conf controls where your httpd server finds
your documents and scripts - DocumentRoot
- /usr/local/etc/httpd/htdocs
- UserDir
- public_html or DISABLED
- Alias or ScriptAlias
- /usr/local/etc/httpd/icons
- /usr/local/etc/httpd/cgi-bin etc.
ICT
11 - access.conf controls what type of action web
browsers have to your whole web server or to
certain directories. - Security precautions can be taken here
ICT
12 ltDirectory /usr/local/etc/httpd/cgi-bingt Options
Indexes FollowSymLinks lt/Directorygt ltDirectory
/usr/local/etc/httpd/htdocsgt Options Indexes
FollowSymLinks AllowOverride All ltLimit
GETgt order allow,deny allow from
all lt/Limitgt lt/Directorygt
ICT
13 - CGI Programming
- Configuring HTTP server for CGI
- NCSA type (e.g. Apache)
- Executing external programs
- Forms handling
- Dynamic Web pages
- e.g Hot areas
- Linking Databases to the Web
- Integrating other services
- Server Side Includes
ICT
14 Forms handling
ICT
15 ICT
16 ltHTMLgt ltheadgtlttitlegtGuest Booklt/titlegtlt/headgt ltbod
ygt lth1gtFill in my guestbook.!lt/h1gt ltform
method"GET" action"/cgi-bin/guestbook.pl"gt ltpregt
First Name ltinput type"TEXT"
name"firstname"gt Last Name ltinput type"text"
NAME"lastname"gt ltinput type"submit"gt ltinput
type"reset"gt lt/pregt lt/formgt lt/bodygtlt/HTMLgt
ICT
17- GET method transfers data within the URL itself
- GET
- /cgibin/guestbook.pl?firstnameYasindulastnameP
ushpika HTTP/1.0 - POST method transfers data in the body portion of
the http request - POST /cgi-bin/guestbook.pl HTTP/1.0
- more headers
- firstnameYasindulastnamePushpika
ICT
18 In GET method Parameters can be extracted
from the Environment variable QUERY_STRING
(ENV in PERL) In POST method body text of the
request will contain the parameters (STDIN in
PERL)
ICT
19 Examination Criteria Examination Paper will
consist of two parts. Part 1 2 Hour paper
consisting of MCQs (Answer ALL) Part 2 1
Hour Paper consisting of Structured
Questions (Answer Q1 and Q2 or Q3)
ICT
20 Main Readings Beginning XHTML by Frank
Boumpery, Cassandra Greer, Dave Raggett, Jenny
Raggett, Sebastian Schnitzenbaumer Ted
Wugofski, WROX press (Indian Shroff Publishes
SPD) 1st edition , ISBN81-7366-164-2, 2000
ICT
21 Main Readings contd.. HTML XHTML The
Definitive Guide by Chuck Musciano, Bill
Kennedy 4th edition ,2000
ICT
22 Main Readings contd.. XHTML Black Book by
Steven Holzner ,2000
ICT
23 - Supplementary Readings
- CGI Programming
- on the World Wide Web.
-
- OReilly Associates.
ICT
24 - Supplementary Readings contd..
- JavaScript Unleashed
- 3rd Edition
- by Wagner
ICT
25 - Supplementary Readings contd..
- Webmaster in a Nutshell (2nd Ed.)
- Stephen Spainhour Robert Eckstein.
- OReilly Associates. 1999
ICT
26 - Supplementary Readings contd..
- Dynamic Web Publishing Unleashed
- by Powers
ICT
27 - Supplementary Readings contd..
- Unlocking Active Server Pages
- by Christop H. Wille
ICT
28 - Platform
- Hardware
- Any standard PC (Pentium)
- Software
- Windows 2000/NT
- Linux
- Apache, Microsoft IIS
- Perl 5.0 (WinPerl) etc.
- JavaScript V2
- HTML 4.01
ICT