This seems like a common questions but none of them seem to be what i\'m looking for. If there is a website:
www.example.com/test.php
I want to pu
$query = $_SERVER['PHP_SELF']; $path = pathinfo( $query ); $what_you_want = $path['basename'];
Voila.