<?php$url="http://www.netxeyes.com/";
$filename = $url;
if(false===($handle = @file($filename))) echo "对不起,服务器忙,请稍候再试" ;
$sult = join ("",$handle);
  preg_match_all('/<a href=\"(?!http:).*?>.*?<\/a>/',$sult,$arr);  //提取需要的正则
  $arr[0][0] =  eregi_replace("src=\"","src=\"http://www.netxeyes.com/",$arr[0][0]); 
  $arr[0][0] =  eregi_replace("href=\"","href=\"http://www.netxeyes.com/",$arr[0][0]); //相对地址替换成绝对地址
  echo $arr[0][0];
  
?>