Re: [PHP] web page function

2002-07-24 Thread Tech Support

Hi Steve,

try this:

if (basename($SCRIPT_NAME) == "index.php")
print "some silly message";


Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 9:50 PM
Subject: [PHP] web page function


I am tring to refer to a web page using a function. What function refers to
a web page?
example: if (page=index.php)
{
print $something
}

What function should "page" be?

Thanks

Steve




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] web page function

2002-07-24 Thread David Buerer

Try This

if(strtoupper($REQUEST_URI)=='INDEX.PHP')
{
  ...statements...
}
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 7:50 PM
Subject: [PHP] web page function


I am tring to refer to a web page using a function. What function refers to
a web page?
example: if (page=index.php)
{
print $something
}

What function should "page" be?

Thanks

Steve



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] web page function

2002-07-24 Thread Steve Minter

I am tring to refer to a web page using a function. What function refers to a web 
page? 
example: if (page=index.php)
{
print $something
}

What function should "page" be?

Thanks

Steve