Also to be posted:
Useful links:
http://www.cs.indiana.edu/classes/a348/spr2008/0327.txt
http://www.cs.indiana.edu/classes/a348/spr2008/Two.java
http://www.cs.indiana.edu/classes/a348/spr2008/One.java
More useful links:
http://www.libraries.iub.edu/scripts/countResources.php?resourceId=59555
http://bert.lib.indiana.edu:3847/toc.asp?bookid=20437
A sample Java project (code).
Older guidelines and sample project blog.
Notes for today.
Recipe for server-side state CGI/perl implementations.
Notes for this week and the previous: part one, part two.
Three things on the horizon:
In class we will probably rewrite them again. If we do, you will find them posted here.
Either way, reference file for today: collection of given procedures
Your servers must look like this:
We'll finish off this diagram and provide remaining details this week.+------------------------------+--------------------------+ | Apache (Homework One) | Lab One (Unix) | +------------------------------+--------------------------+ | CGI/Perl (or CGI/Python) | Lab Two (Basic CGI) | | The Flag Quiz Program +--------------------------+ | (Homework Two) | Lab Three (htpasswd) | +------------------------------+--------------------------+ | Introduction to Databases | Lab Four (HTTP) | | RDBMS Design, SQL Queries +--------------------------+ | (Homework Three) | Lab Five (PHP) | +-----------------------------+--------------------------+ | PHP server-side state | Lab Six (MySQL) | | Intro to PHP, Sessions +--------------------------+ | (Homework Four) | Lab Seven (DBI.pm) | +------------------------------+--------------------------+ | Server-side state in CGI | Lab Eight (Practical) | | Perl/Python implementations +--------------------------+ | (Homework Five) | Lab Nine (DHTML) | +------------------------------+--------------------------+
We ended up with a collection of tables, with data in them, and wrote an SQL query (a complex one, as an example).
We then discussed three scripts that were able to extract data from the database.
Here they are: Perl, Python, PHP.
Let's work out a simple exercise: here's the basic database setup for this exercise.
Two PHP scripts: part one, and part two
But before that we will discuss Chapter 12 in the text.
It will help us understand (and unify) the client-side with the server-side state maintenance techniques.
Introduction to databases (Adamski and Pratt) slides for chapters 5 and 6:
Here's the database for The Chess Tournament.
Notes prepared for today's class and the lab.
(A little bit more will be developed in lab (reference), though, and posted over here.)
The lab is based on this data:
Larry Bird (lbird) | Michael Jordan (mjordan) | Toni Kukoc (tkukoc)
---------------------------------------------+--------------------------+---------------------
Eric Gordon egordon 9 | 10 |
---------------------------------------------+--------------------------+---------------------
D.J. White djwhite 10 | |
---------------------------------------------+--------------------------+---------------------
Deandre Thomas dthomas 7 | |
---------------------------------------------+--------------------------+---------------------
A.J. Ratliff ajratlif 8 | |
---------------------------------------------+--------------------------+---------------------
Mike White mwhite | 8 |
---------------------------------------------+--------------------------+---------------------
Armon Bassett abassett | 7 |
---------------------------------------------+--------------------------+---------------------
Jamarcus Ellis jmellis | | 10
---------------------------------------------+--------------------------+---------------------
Lance Stemler lstemler | | 5
Some other URLs for this week:
http://www.cs.indiana.edu/classes/a202-dger/fall2006/a201-text/thinkCSpy.pdf
http://www.cs.indiana.edu/classes/a201-dger/problems.txt
Local copies of the Univ. of Virginia tutorial: one, two, three, four, five, six, seven, eight.
Some of the links distributed last week: