i'm trying to grab the file name from mediafire to my database caption, I have rapidshare working fine.
here's the code for rapidshare
if($type==1)
{
$words=$links[$j];
preg_match("/rapidshare\.com\/files\/\d+\/(.+)/",$words,$match);
unset($words);
$words=$match[1];
unset($match);
$words=preg_split("/[_\.\-]/",$words);
$lastword=array_pop($words);
if($lastword=="html") array_pop($words);
$words=implode(" ",$words);
$words=preg_replace("/\s{2,}/"," ",$words);
$caption=mysql_real_escape_string($words);
unset($words);
}How ever, i'm not sure which preg_match would be the correct one for mediafire..
appreciate any help.