<?php
$url="http://www.hao123.com/";
$fp=@fopen($url,"r");
$fg=file_get_contents($url);
eregi("<body(.*)</body>",$fg,$ty);
$ty[1]=str_replace("src=\"../index/images/","src=\"http://s1.hao123img.com/index/images/",$ty[1]);
echo $ty[1];
?>//无法获取图片,我自己的目录下有/index/images/文件夹求解释