detecting php file
Posted: Wed Jul 11, 2007 8:25 am
I want to use a different background image on certain pages. How do I detect the /greatpage.php? Basically what HTTP_REFER leaves out.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Yes. But only if we don't use mod_rewrite.feyd wrote:__FILE__ is probably better to use. It's certainly safer than PHP_SELF.
With mod_rewrite, one is on their own as they should be able to figure it out.Gente wrote:Yes. But only if we don't use mod_rewrite.