View Single Post
  #7 (permalink)  
Old 07-23-03, 05:01 PM
kevin kevin is offline
Newbie Coder
 
Join Date: Jun 2003
Location: USA
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Hi !

Hope this help

Code:
$url ="http://yahoo.com/abcdef/2153abc.gif";

preg_match("/[^\/]+$/",$url,$matches);

$file_name = $matches[0];

print "$file_name";
it will print 2153abc.gif

Regard
Kevin

Last edited by kevin; 07-23-03 at 05:03 PM.
Reply With Quote