$url = "http://wherever.com/whatever.gif"; $file = `basename $url`;