Selectively Displaying Text
From: Anonymous Poster (anonymous_at_anonymousplace.com)
Date: 12/29/03
- Next message: CountScubula: "Re: "asp.not" to php?"
- Previous message: Julia Briggs: "Re: Novice Question: What does LIMIT do in a MYSQL statement?"
- Next in thread: <>: "Re: Selectively Displaying Text"
- Reply: <>: "Re: Selectively Displaying Text"
- Reply: Michael Fuhr: "Re: Selectively Displaying Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Dec 2003 02:31:16 GMT
Hello Everyone,
This is probably very simple but I am missing it here. I have a file called
"header.php" which is included on every one of my other PHP pages. If the
page it's being included on is named "index.php" then I do not want to
display certain text. Otherwise I want it there. The code I am using now is:
if($_SERVER['PHP_SELF'] == "index.php"){
display_text;
}
But that doesn't work. I am assuming that this is because "technically" the
page name is "header.php" which is INCLUDED on "index.php". Is this correct?
Either way, how can I accomplish this goal?
Thanks!
Anthony
- Next message: CountScubula: "Re: "asp.not" to php?"
- Previous message: Julia Briggs: "Re: Novice Question: What does LIMIT do in a MYSQL statement?"
- Next in thread: <>: "Re: Selectively Displaying Text"
- Reply: <>: "Re: Selectively Displaying Text"
- Reply: Michael Fuhr: "Re: Selectively Displaying Text"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|