[6045] in www-talk@info.cern.ch
Re: extend CGI
daemon@ATHENA.MIT.EDU (Chris Shenton)
Wed Oct 5 09:30:45 1994
Date: Wed, 5 Oct 1994 14:24:19 +0100
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: cshenton@wasabi.nsi.nasa.gov
From: Chris Shenton <cshenton@wasabi.nsi.nasa.gov>
To: Multiple recipients of list <www-talk@www0.cern.ch>
On Wed, 5 Oct 1994 03:06:27 +0100, luotonen@neon.mcom.com (Ari Luotonen) said:
Ari> Yep, except that the slash is included in it, so it's /extra
Ari> PATH_TRANSLATED is the result of translating that as if client
Ari> had asked for it, so it might be /some/directory/foo/bar/extra
Does this in any way allow me to specify a relative path which can be
expanded by CGI as the full path? I'd like to be able to say
/cgi-bin/myscript/file-in-this-dir
and have the script be able to determine that it really needs to play with
/usr/local/WWW/documents/project/smell-server/file-in-this-dir
or whatever. The absolute paths make it real hard to move hierarchies
around, trade 'em with your friends, etc.
Perhaps if I explicitely wanted an absolute path, I'd specify
something like:
/cgi-bin/myscript//full/leading/path/dir/file-in-this-dir
with a double slash.
Thanks.