I needed to pull the file name out of a really long URL. Explode worked great after a bunch of tweaking! Here is the small script I wrote to do that!
$sql="SELECT * from comicfiles WHERE USERNAME='$session[USERNAME]'";
$result=mysql_query($sql);
while($myrow = mysql_fetch_array($result)) {
$URL=$myrow[URL];
$filename=explode('/', $URL);
print (" <br> $filename[5]"); }
Mike..