Heim >Backend-Entwicklung >PHP-Tutorial >小偷程序不能显示图片!
小偷程序不能显示图片!!求助!!
<br /><?php<br />header("content-Type: text/html; charset=Utf-8");<br />$url = "http://www.weather.com.cn/weather/101251401.shtml";<br />$fp = @fopen($url, "r") or die("连接超时");<br />$fcontent = file_get_contents($url);<br />eregi("<div class=\"cleardiv\"></div>(.*)<script type=\"text/javascript\" src=\"http://m.weather.com.cn/a1.js\">",$fcontent,$we);<br /><br />$we[1] = str_replace("src=\"http://localhost/m2/i/icon_weather/29x20/", "src=\"http://www.weather.com.cn/m2/i/icon_weather/29x20/", $we[1]);<br />echo $we[1];<br />?><br />