日期:2014-05-17 浏览次数:20488 次
<?php
function get_flash_url( $url )
{
$lines = file($url);
foreach ($lines as $linenum=> $line) {
preg_match_all('|<title>([^<>]+)</title>|',$line,$result);
$swfurl=$result[1][0];
if(!empty($swfurl))
return $swfurl;
}
}
?><?php
$url=$_SERVER["QUERY_STRING"];
$flashurl= get_flash_url($url);
echo preg_replace("/[&,?]/","",$flashurl);
?>