Class Notes from Spring 2005, for your review.
And for the sake of review, here's an alternative summary of the class:
- basic HTML was discussed at first
- we then created Unix accounts and reviewed Unix commands
- your first lab was an exercise in creating and distributing an archive
- you recall how permissions were important, and we used
chmod for that
- we then discussed what a web server is and we installed Apache (from an archive)
- we reviewed Apache's folders as we set
httpd.conf up before starting it
- we worked with
crontab and set up an automated server restart routine
- in the process we set some environment variables:
$EDITOR, $PATH
- and then we described the essence we needed to know about Perl
- using this language we described the set of conventions that comprise CGI
- a protected folder was set up so we can turn in our homework assignments
- we started writing our first CGI scripts and keeping state was an issue
- but the first thing we wanted to investigate was giving input to the script
- we found out that hidden fields could be used to keep state in a friendly environment
- we worked out a basic CGI processor
- we then investigated object-oriented perl and the CGI.pm module
- we came up with a template for developing web scripts
- we used it with CGI.pm and then we introduced PHP
- PHP had sessions so we decided we could keep state server side
- server-side state can be kept with CGI if we store it in a database
- we investigated
mysql and we said DBI.pm is the way perl accesses it
- we discussed keeping state in general and in mysql using perl's DBI module
- we then worked out some problems and took the midterm
- after the midterm we installed Tomcat
- we wrote our first servlets (with and without sessions)
- we discussed JSP (java server pages)
- and then we discussed Javascript and DOM (the document object model)
- mysql access from PHP was also demonstrated and we built a shopping cart
- we then discussed possible projects: web chat, Javascript shopping cart
- the web chat uses HTTP in a certain way, which reminded us of the experiments in lab four
At the end we listed a bunch of questions of the kind you might see on the exam.
Also please review your homework assignments:
| Number | Assignment | Programs
|
| 1 | Install Apache. | None.
|
| 2 | Basic client-side state with CGI.pm | One
|
| 3 | PHP (sessions and hidden fields) | Two
|
| 4 | Server-side state with MySQL and DBI.pm | One
|
| 5 | Servlets | Two
|
| 6 | Java Server Pages | Two
|
| 7 | Javascript and DHTML | One
|