Re: extend CGI

Chris Shenton ([email protected])
Wed, 5 Oct 1994 08:57:13 -0400


On Wed, 5 Oct 1994 03:06:27 +0100, [email protected] (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.