basename.php
<?php $path = "/home/www/data/users.txt"; $filename = basename($path); print $filename; ?>