php show active page code example Example 1: php show active page Home Contact Example 2: php show active page $activePage = basename($_SERVER['PHP_SELF'], ".php");