[Xitami] PHP 4.0.2+ $PHP_SELF empty

Paul Reid xitami@lists.xitami.org
Tue, 23 Apr 2002 15:17:39 -0400


> $PHP_SELF is set, but empty!

> $SCRIPT_NAME works just the same.  Give that a try.

> a pain to change code.

Don't change the code.

Make a BAT file called PHP-fix.BAT

 @echo off
 set  $PHP_SELF=$SCRIPT_NAME
 c:\php\bin\php.exe %1 %2 %3 %4 %5

(I may have screwed-up the syntax, but you'll figure it out.)

Tell Xitami to send PHP file to PHP-fix.BAT

 -PRR