On 1 Apr 2002, clemensF wrote:

> Date: 1 Apr 2002 22:10:41 +0200
> From: clemensF <[EMAIL PROTECTED]>
> To: mathopd-ml <[EMAIL PROTECTED]>
> Subject: PATH_INFO?  PATH_TRANSLATED?
> 
> i need both PATH_INFO and PATH_TRANSLATED for my cgi's.  the source in
> cgi.c says i'd get them either with setting an external program or, in case
> of a "normal" cgi a special setup, but only if Pathargs is On in the config
> file.  i've tried several combinations, but my env.cgi never shows these
> two variables.  how must they be set?
> 
> clemens fischer
> 

Depends on the server version.

Here is the scenario for 1.3

PATH_INFO and PATH_TRANSLATED is only set if there is extra information
after the request-uri. So, e.g. /foo/test.cgi would not set the variables,
but /foo/test.cgi/ would. PATH_INFO is set to whatever comes after the
request-uri, and PATH_TRANSLATED is set to the physical name of the
path-info when resolved by the server.

In 1.4 the situation is more complex. (But IMHO more useful.)

For 'regular' cgi scripts the situation is as described above. 'External'
scripts have PATH_INFO set the the entire request-uri (minus the query
string) and PATH_TRANSLATED is set the the physical name of the script on
the web server.

I'm not sure if the PathArgs thingy has anything to do with this.

Reply via email to