YurunHttp 获取网页源代码
<?php
$http = HttpRequest::newSession();
$response = $http->get('http://www.baidu.com/');
$content = $response->body; // 网页源码
<?php
$http = HttpRequest::newSession();
$response = $http->get('http://www.baidu.com/');
$content = $response->body; // 网页源码