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

Reply via email to