Class Notes

Notes: 1. please visit this page frequently, as it will be updated constantly during the term
2. Items under Slides and under Additional Material are considered mandatory reading and will be tested in the exams.

Shortcuts:

01: Introduction to Unix/AFS
Topics
Aug 30: intro to Unix
Sep 01: intro to AFS
Additional Material
Online Resources
Reference Books

02: Course Overview
Topics
Sep 06: overview
Additional Material
Online Resources
Reference Books

03: Introduction to HTML
Topics
Sep 08: intro to HTML
Additional Material
first.html,   greet.html,   headings.html,   lists-ul.html,   lists-ol.html,   lists-def.html,   para.html,   table.html
Online Resources
Reference Books

04: Perl I
Topics
Sep 13: intro to Perl
Sep 15: List/Arrays
Sep 20: Hashes
Additional Material
Sep 13: hello.pl,   eof.pl
Sep 15: array1.pl,   array2.pl,   array3.pl
Sep 20: lhs.pl,   io1.pl,   hash1.pl
Online Resources
perl.com/
perl.org/

Article on Lexical Scope: Part 1, Part 2, Part 3.

Reference Books
Learning Perl, 4th Ed (O'Reilly)
Safari Links:   Ch 1 ,   Ch 2,   Ch 3,   Ch 6

05: Perl II
Topics
Sep 22: Functions
Sep 27: File I/O
Sep 29: Regular Expressions
Additional Material
Sep 22: sum.pl,   addtwo.pl,   scope1.pl,   spoof.pl
Sep 27: add_any.pl,   argv.pl,   fileio.pl
Sep 29: getopt.pl,   reg1.pl,   reg2.pl,   reg3.pl
Online Resources
Perl Documentation: http://perldoc.perl.org/

Getopt::Long manual

Reference Books
Learning Perl, 4th Ed (O'Reilly)
Safari Links:   Ch 4,   Ch 5,   Ch 7,   Ch 8,   Ch 9,   Ch 10,   Ch 11

06: Perl III
Topics
Oct 04: Regular Expressions
Oct 06: References/Complex Data Structures
Oct 11: Review of References/Complex Data Structures
Additional Material
Oct 04: phonedir.pl,   dir.txt
Oct 06: hashptr.pl,   record.pl
Oct 11: hashptr.pl (updated),   phonedir.pl (updated),   dir.txt
Online Resources
Perl Documentation: http://perldoc.perl.org/


Reference Books
Programming Perl, 3rd Ed (O'Reilly)
Safari Links:   Ch 8,   Ch 9

07: CGI Programming with Perl
Topics
Oct 18: CGI/CGI.pm
Oct 20: forms with CGI.pm
Oct 25: file I/O with CGI.pm
Oct 27: CGI.pm: putting it all together
Additional Material
Oct 18: reply.pl,   first-script.pl
Oct 20: headers.pl,   cgihtml.pl,   second-script.pl
Oct 25: filetest.pl,   myfile.txt,   locktest.pl,   lockedfile.txt
Oct 27: formtest.pl,   cntfile.txt,   cnt.log
Online Resources
CGI.pm Manual: http://search.cpan.org/dist/CGI.pm/CGI.pm

Perl Documentation: http://perldoc.perl.org/: open(),   seek(),   localtime()

Flock example

Reference Books

08: Introduction to PHP
Topics
Nov 01: Variables in PHP

Nov 03: Variables/Arrays/Forms

Nov 08: Multipage Forms

Nov 10: Functions, Files, and Regular Expressions

Additional Material
Nov 01: hello.php (run),   hello2.php (run),   hello3.php (run),   hello4.php (run)

Nov 03: vars1.php (run),   array1.php (run),   vars2.php (run)

Nov 08: skel.php (run),   power1.php (run),   power2.php (run),   power3.php (run)

Nov 10: func1.php (run),   func2.php (run),   func3.php (run),   func4.php (run),   file1.php (run),   lala.txt

Online Resources
PHP Manual: http://www.php.net:
Reference Books
Programming PHP, 1st Ed (O'Reilly)

09: PHP and MySQL
Topics
Nov 15: Relational Databases

Nov 17: Intro to SQL

Nov 22: MySQL/PHP

Nov 29: SQL overview

Dec 01: Multiplayer Tic-Tac-Toe example

Additional Material
Nov 22: dbconn.php (run),   dbconn2.php (run).

Dec 01: table.php (run),   ttt-login.php (run).

Online Resources
PHP Manual: http://www.php.net:   MySQL Functions:

MySQL Documentation: http://dev.mysql.com/doc/

Reference Books
Programming PHP, 1st Ed (O'Reilly)