Home  >  Article  >  php教程  >  用php测远程服务器用的PHP版本

用php测远程服务器用的PHP版本

WBOY
WBOYOriginal
2016-06-13 11:21:191105browse


$ch curl_init();
curl_setopt($chCURLOPT_URL'http://www.drise.cn'
);
curl_setopt($chCURLOPT_HEADERtrue
);
curl_setopt($chCURLOPT_RETURNTRANSFER1
);
curl_setopt($chCURLOPT_NOBODYtrue
);
$order curl_exec($ch
);
echo 
''
;
echo 
strip_tags($order
);
echo 
''
;
curl_close($ch);?>


有的服务器是看不到了,原因要根据服务器的配置而定了,在这里我就不多说了.


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
Previous article:把Session放入MySqlNext article:静态页面的值传递