If by "other areas" you mean other sites, the convention these days is to use $_SERVER['PHP_SELF'] instead, because since PHP4.1 $PHP_SELF is no longer defined by default, and unless you deliberately state otherwise, is not defined inside functions anyway.
If by "other areas" you mean other pages on the same site, and that the same functions are working on those other pages, then seeing some code would be helpful: what is different about how index.php uses those functions and how the other pages use them?