无法访问iis网站,湛江 网站建设,风景网页设计图片,视频推广网站第一种#xff1a;直接使用函数:file_get_contents();前提是需要php编译时候支持 ssl#xff0c;也就是加上withopenssl选项#xff0c;windows下则需要将extentionopenssl.dll选项打开。比如#xff1a;echo file_get_contents(https://www.paypal.com/c2);即可打印出结果…第一种直接使用函数:file_get_contents();前提是需要php编译时候支持 ssl也就是加上withopenssl选项windows下则需要将extentionopenssl.dll选项打开。比如echo file_get_contents(https://www.paypal.com/c2);即可打印出结果第二种使用CURL,当然你的php需要支持curllinux中需要配置。。。windows中需要配置。。。。(省略)方法ob_start();$url (https://www.paypal.com/c2);$ch curl_init();curl_setopt($ch, CURLOPT_URL,$url);curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);$result curl_exec($ch);$r ob_get_contents();echo $r;原理是将内容打印到缓冲区然后将缓冲区内容赋值给一个变量。参考资料php支持curl扩展