Home > Backend Development > PHP Tutorial > 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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-20 11:05:15
Original
1244 people have browsed it


$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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template