[6046] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: extend CGI

daemon@ATHENA.MIT.EDU (Ari Luotonen)
Wed Oct 5 10:13:23 1994

Date: Wed, 5 Oct 1994 15:06:19 +0100
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: luotonen@neon.mcom.com
From: luotonen@neon.mcom.com (Ari Luotonen)
To: Multiple recipients of list <www-talk@www0.cern.ch>


> Ari> PATH_TRANSLATED is the result of translating that...
> 
> Does this in any way allow me to specify a relative path which can be
> expanded by CGI as the full path?

Well, that's exactly what it does.

If you want this:

> 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

You would just have an Alias (or Map/Pass in CERN httpd) for
/file-in-this-dir to the absolute path.

> 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.

That's not such a hot idea -- double slashes get removed by most
servers.

-- Cheers, Ari --




home help back first fref pref prev next nref lref last post