<?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;
追问不能用啊打不开网页