PHP怎么修改网页文字并提取图片啊

怎么把这三行文字修改并提取修改后的图片啊求教 网址:http://tp.388g.com/make.php?id=736

要PHP代码

<?php
$text1 = "第一句";
$text2 = "第二句";
$text3 = "第三句";
$url   = 'http://tp.388g.com/aosbegin00006.php?id=736&text1={text1}&text2={text2}&text3={text3}&text4=undefined&text5=undefined&rnd=';
$url = str_replace('{text1}', urlencode($text1), $url);
$url = str_replace('{text2}', urlencode($text2), $url);
$url = str_replace('{text3}', urlencode($text3), $url);
$url = $url.time();
$content = file_get_contents($url);
preg_match('/<outputimg>\.(.*?)<\/outputimg>/is', $content, $matched);
$imgUrl = 'http://tp.388g.com'.$matched[1];
echo $imgUrl;
exit;

追问

不能用啊打不开网页

温馨提示:答案为网友推荐,仅供参考
相似回答