<?php $pageOn = basename($_SERVER['REQUEST_URI']);echo $pageOn; //returns the current URL address minus the domain name?>