Get the Current Page Name - PHP Views : 314
Tagged in : PHP
0 0
Send mail
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



    Login to add Comments .