Try this: $file = "/usr/blah/doh/yuck/wow/abigfile.html";
$file = basename($file); It will returns abigfile.html Thatīs it Regards Alex At 16:04 24/4/2002 -0400, ROBERT MCPEAK wrote: >I need code that grabs the file at the end of a file path. >I have this: > >/usr/blah/doh/yuck/wow/abigfile.html > >And would like to return this: > >abigfile.html > >Could somebody show me how to do this? > >Thank you! > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php