Try this, not the most efficient way.
$names = explode("/", /usr/blah/....);
last_element = sizeof($names)-1;
$name[last_element] = abigfile....
> 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
>

-Pushkar S. Pradhan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to