Facile!

Hai diversi sistemi ma il più usato è

Codice PHP:
print $_SERVER[PHP_SELF] ;