Page 1 of 1

SCRIPT_NAME value

Posted: Sun Aug 12, 2007 2:08 pm
by anjanesh
Hi

Does substr($_SERVER["SCRIPT_FILENAME"], strlen($_SERVER["DOCUMENT_ROOT"])) always evaluate to $_SERVER["SCRIPT_NAME"] ?

Thanks

Posted: Sun Aug 12, 2007 2:23 pm
by superdezign
It's hard to make a statement like that, because the $_SERVER array is information from the server itself, and all servers aren't configured the same way.