Some thoughts about PATH_INFO

[prev] [thread] [next] [lurker] [Date index for 2003/12/5]

From: Shlomi Fish
Subject: Some thoughts about PATH_INFO
Date: 18:06 on 05 Dec 2003
Hi all!

First of all, I think we should retrieve the path info by using the CGI.pm 
interface:

http://search.cpan.org/~lds/CGI.pm-3.00/CGI.pm#FETCHING_ENVIRONMENT_VARIABLES

(look for path_info()).

Secondly, I'm not sure we need the CGI_PATH config variable, as we can 
determine it from the $q->script_name() (that uses $ENV{SCRIPT_NAME}),
and together with PATH_INFO (as is commonly found throughout the code) from 
the $ENV{REQUEST_URI} variable (which does not seem to have a CGI.pm 
equivalent).

Otherwise, I think we should reduce the number of absolute links to a minimum 
and use relative links instead. We can do this by calculating the relative 
distance between two URLS and using ../ where appropriate.

Regards,

	Shlomi Fish
-- 

---------------------------------------------------------------------
Shlomi Fish      shlomif@xxxx.xxx.xx
Homepage: http://t2.technion.ac.il/~shlomif/

I don't believe in fairies. Oops! A fairy died.
I don't believe in fairies. Oops! Another fairy died.

Generated at 21:25 on 07 Dec 2003 by mariachi 0.51