Many instructors have asked for a simple, secure solution that will allow their students to access only their own test results on the web. This is a description of a temporary solution that will be phased out when this functionality becomes available through the new Student Information System.
The solution makes use of the authentication mechanism provided by WatIAM. To access their interim marks (final marks are released by the Registrar), students must have a UW Userid and password. Every student already has a UW Userid, but unless they have applied for coop jobs or participated in student elections, they may not have been assigned a password.
Start by creating a web-accessible directory as follows:
ls -l .htaccess -rw-r--r-- 1 snyder other 441 Jan 16 15:52 .htaccess
ls -l getmarks -rwx------ 1 snyder other 2082 Jan 16 15:11 getmarks
The getmarks program expects the marks file to be in a comma delimited format, for example:
Spanish 101 Fall 2000,,,, Assign 1,Assign 2,Mid Term,Final Exam,Userid 7.0,7.5,47.0,92.0,snyder 6.5,8.0,36.5,78.0,chappell 10.0,9.5,28.0,55.0,ssmith 8.2,9.0,45.0,95.0,abartha 9.0,10.0,48.0,85.0,jfredrichs 8.0,8.2,47.0,87.0,landerson
The first value of the first line is expected to contain descriptive information. The second line is used to define column headings. Each of the remaining lines contains a column with the student's UWuserid. This is matched against the authenticated userid that the student will provide as part of a login to your web page.
Note that the export function of Exambook of Excel will create a file in the above format. Note also that there is no restriction on the number or type of columns to be displayed.
Store the file containing your marks in your 'marks' directory. In this example, suppose the file was called 'spanish101'.
Make sure the file does not have world-read permissions. For example,chmod o-r spanish101 ls -l spanish101 -rw------- 1 snyder other 718 Jan 16 15:07 spanish101
Students should be directed to access your marks page using a URL in the following format:
hostname.uwaterloo.ca/~userid/marksdirectory/getmarks?course=marksfilename
for example:
ist.uwaterloo.ca/~snyder/marks/getmarks?course=spanish101
They will be required to authenticate themself using the following form.
And their marks will then be displayed, for example:
Last updated by Paul Snyder on September 27, 2004.