i know that $PHP_SELF gets the document file name, and the path. (eg. “/path/to/file.php”) – is there a pre defined variable to get [i]just[/i] the file name? or would i have to mess around with the string after geting $PHP_SELF ?
@pyroDec 11.2003 — #You'd just use [url=http://us4.php.net/basename]basename()[/url]. Also, I would not use register_globals. Use this: $_SERVER['PHP_SELF'] instead of $PHP_SELF.
@pyroDec 11.2003 — #You should not use register globals because of [url=http://us4.php.net/manual/en/security.registerglobals.php]security[/url] issues, and because they can be turned off in the php.ini file, and thus makes your code not portable.