[Xitami] $PHP_SELF
Stanislav Karchebny
xitami@lists.xitami.org
Sun, 18 Nov 2001 13:45:36 +0500
Use The Source, xitami!
I was just... messing around with my scripts and found one thing about
$PHP_SELF. Indeed, I encountered the problem long ago and just
invented a fix in my header file and even forgot about it :))
here's the PHP-side fix:
// win32 localhost workaround -- berkus 2001.08.02 01:26 YEKST
if( strstr($SCRIPT_NAME, "\\\\") )
{
$PHP_SELF = substr($SERVER_URL,0,-1).str_replace("\\\\", "/", $SCRIPT_NAME);
}
-- keep in touch. Stanislav Karchebny.
* berkus@vismech.ru * http://ber.k45.ru * ICQ UIN 49516372 *
* Odin operating system development: http://odin-os.sf.net *
* Ease of use, ease of programming, joy of power *