Try this:

$file = "/usr/blah/doh/yuck/wow/abigfile.html";

$file = basename($file);

It will returns abigfile.html

Thatīs it



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:
>And would like to return this:
>Could somebody show me how to do this?
>Thank you!
>PHP General Mailing List (
>To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to