用php测远程服务器用的PHP版本_PHP教程
时间:2021-07-01 10:21:17
帮助过:2人阅读
$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...