PHP Get URL Nome do caminho

parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH );
Yoshkinawa