<?php echo $_SERVER['PHP_SELF']; ?>

konumu göstermesi için;
<?php echo substr($_SERVER["SCRIPT_NAME"], "", $_SERVER['PHP_SELF']); ?>