Checklist for Assignment 3

I have received a large number of emails essentially asking the same kind of questions. Instead of answering each of them individually, I am posting my answers here.

DBD::CSV

Most problems concern access to the database. Many of you report that they can access the database when accessing their CGI script from the command line, but not when executing it through CGI. They then blame an apparent error in the DBD::CSV installation. Nothing further from the truth. Here is a list of things you should check for in your set-up. BTW- running the script from the command line can even be the source of the error! Another common problem is caused by using the wrong method to submit a form: Other problems are caused by not making good use of the facilities of Perl: To repeat, none of these problems are caused by the DBD::CSV module.

Cookies

Some of you reported problems with setting a cookie for the user id, when using the cookie() method in the CGI.pm. Kindly refer to pages 287/8 in the book for a detailed description of how to use it.

The key to understanding the example in the book is that cookies are part of the header sent with the HTTP response. That is, you must set a cookie in the header() method, as follows:

$cookie = $q->cookie(-name => "name", -value => "value", -expires => "+1h");
print $q->header(-type => "text/html", -cookie => $cookie);

Sigma10

Some people reported problems with accessing sigma10. I have only noticed intermittent problems, probably due to high load. The server generally comes back to operation shortly after.

However, your request might still "hang" in the browser. You will have to resubmit the request. I would suggest to "ping" the web server, when you encounter such problems, and test if it is back online: ping sigma10.

Requirements

Now to the questions of which I would have expected a lot more.