Jan 22, 2001, 8:54 PM
Post #4 of 5
"but I am already doing the SSI call correctly"
Re: Here's another one...more involved
[In reply to]
Unfortunately you are not. Let us borrow from Section 5.7 of the Mouse book (CGI Programming on the World Wide Web)...
But the book does provide a way out...
Remember we talked about query strings as a way of passing information to a CGI program in Chapter 2?
Unfortunately, you cannot pass query information as part
of an SSI exec cgi directive. For example, you cannot do the following:
It seems a major oversight in the rules for SSI, but it is what we have to live with.
However, we can create a regular Perl program (not a CGI program) that takes a date as an argument,
and calculates the number of days until/since that date:
<!--#exec cmd="/usr/local/bin/httpd_1.4.2/count_days.pl 4/1/96"-->
In the Perl script, we can access this command-line data (i.e., "4/1/96") through the @ARGV array.
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?