basename(FILE) == basename($PHP_SELF)
means what?
basename(FILE) == basename($PHP_SELF)
means what?
... checks if the curent file is included in another file or not
thx.
why i cant find the detailed instruction on php manual?
detailed instructions about what
== ,
basename,
FILE,
or $PHP_SELF ??
Originally posted by phpk
thx.
why i cant find the detailed instruction on php manual?
basename() was easily found, with the user contributed notes giving some info on $PHP_SELF
http://www.php.net/manual/en/function.basename.php
FILE was easily found:
http://www.php.net/manual/en/language.constants.predefined.php
Of course, if you've done some good reading, you would know that $_SERVER['PHP_SELF'] is the form to use for $PHP_SELF