W3C home > Mailing lists > Public > www-html@w3.org > January 2000

RE: SSI and CGI

From: Jonathan Wright (DNA) <dna@dna-rna.freeserve.co.uk>
Date: Thu, 13 Jan 2000 19:48:34 -0000
To: "Perl Win32 Users List" <Perl-Win32-Users@listserv.ActiveState.com>, <www-html@w3.org>
Message-ID: <000c01bf5dff$2da1b800$ae93883e@dna.co.uk>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hiya,

All my pages are normal, static HTML. Nothing too complex, just a few
JavaScript calls for the links. I'm using SSI tags to help make life
easier. I'm using a combination of 'include virtual' and 'exec cgi'.
'include virtual' are just the rest of the static html. Anything with
'exec cgi' are totally dynamic. The CGI all works fine, and I don't
have a problem with any of it. it's all thoroughly tested in DOS
(using a BEGIN routine for DOS calling).

In News.shtml. The article in question might be in the middle, end or
beginning. Using news.pl, I check the contents listing, and then
decide whether to have 'next' and 'previous' and then link them to the
correct article.

BTW I'm using Apache 1.3.9 Win32 (on w:/usr/apache), and ActivePerl
522 (on w:/usr/perl). The web site is on w:/web. Everything is
configured and the html itself isn't causing a problem.

What I can't do, as I said, it to pass across the variables needed to
select what I'm going to do in the script. So far I've tried:

<!--#exec cgi"/cgi-bin/news.pl?b"-->
<!--#exec cgi"/cgi-bin/news.pl\?b"-->
<!--#exec cgi"/cgi-bin/news.pl" "b"-->

but for the first two I get:

[Thu Jan 13 19:12:51 2000] [error] [client 127.0.0.1] invalid CGI ref
"/cgi-bin/news.pl\?b" in w:/web/home.shtml
[Thu Jan 13 19:13:02 2000] [error] [client 127.0.0.1] invalid CGI ref
"/cgi-bin/news.pl?b" in w:/web/home.shtml

and the last runs, but dies because it's not been told to do anything.
The extra "b" does nothing.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Jonathan Wright
- -
- - dna@dna-rna.freeserve.co.uk
- - dna_jwright@hotmail.com
- - ICQ : 21961373
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - www.dna-rna.freeserve.co.uk  - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Edition 6.0.2

iQA/AwUBOH4p6wyroJOfk+1LEQIwhwCg38wRvyCA3AfBcwEy7Ocj+xE3GgEAn1L+
nrXQOObWfSDt5wLt75f52dfj
=BUCk
-----END PGP SIGNATURE-----


Received on Thursday, 13 January 2000 14:48:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT