Home  >  Article  >  Backend Development  >  Use php to test the PHP version used by the remote server_PHP tutorial

Use php to test the PHP version used by the remote server_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:05:151194browse


$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);?>


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


www.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