fetch-service.php文件实例代码:
<?php
echo '$fetchService->fetchByGet 方法实例:';
echo '
';
$url ="http://www.taobao.com";
$content=$fetchService->fetchByGet($url);
if($content) {
echo '调用$url: '.$url . '的远程内容为:'.$content;
}
?>
运行结果: