Home  >  Article  >  Backend Development  >  小偷程序不能显示图片!

小偷程序不能显示图片!

WBOY
WBOYOriginal
2016-06-13 12:41:00906browse

小偷程序不能显示图片!!求助!!

<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 />

我是看PHP100视频照着写的,但是图片就是显示不出来...
以下是截图:

下面是天气预报网站的图片的地址

PHP
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn