|
|
Get the Current Page Name - PHP
|
Views : 314
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Get the current page name of URL that is shown in the browser URL window.
<?php
function curPageName() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}
echo "The current page Name is ".curPageName();
?> |
|
By raveendran, On - 2010-01-28 |
|
|
|