Use:
//function curPageName() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
echo "This page name is ".curPageName();
?>//
This will give you just page.html etc..
Saturday, August 7, 2010
Subscribe to:
Post Comments (Atom)
This post is interesting and I think helpful as well. I will refer this to my friend. Thank you and keep sharing.
ReplyDeleteweb design manila
Your posts are really helpful. But please keep posting more entries in your blog!
ReplyDeleteTattoo Machine Kit