$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.drise.cn');
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_NOBODY, true);
$order = curl_exec($ch);
echo '';
echo strip_tags($order);
echo '';
curl_close($ch);?>
有的服务器是看不到了,原因要根据服务器的配置而定了,在这里我就不多说了.
http://www.bkjia.com/PHPjc/445138.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445138.htmlTechArticle?php $ch = curl_init (); curl_setopt ( $ch , CURLOPT_URL , 'http://www.drise.cn' ); curl_setopt ( $ch , CURLOPT_HEADER , true ); curl_setopt ( $ch , CURLOPT_RETURNTRANSFER , 1 ); c...
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