[Xitami] $PHP_SELF variable

Paul Reid xitami@lists.xitami.org
Mon, 12 Nov 2001 13:46:23 -0500


>  Since Version 2.4d5 (or d4 I'm not sure) this PHP variable which should be filled with the calling script's filename is empty. 

Which Version Of PHP ???

The current version of PHP changed which variable it uses to find its
script. The PHP site documents this as a security issue. Xitami does not
(AFAIK, never did) fill this variable.

I had a BAT file which patched this under DOS/Win. It was posted here
last year. Unfortunately I lost most of my older messages since then. I
*think* the trick is to SET PATH_INFO the same as SCRIPT_PATH and then
call PHP. 

 -PRR