我能在我的MAC OSX PHP和正常的PHP代碼工作正常的工作,但我今天的PHP的file_get_contents不是本地服務器
<?php
$hi = file_get_contents("https://ojooo.com");
echo $hi;
?>
了一個奇怪的錯誤對於上面的代碼我得到下面的錯誤我的本地服務器上但上面的代碼在我的主機上運行良好。
Warning: file_get_contents() [function.file-get-contents]: SSL operation failed with code 1. OpenSSL Error messages: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) in /Library/WebServer/Documents/hi/index.php on line 2
Warning: file_get_contents() [function.file-get-contents]: Failed to enable crypto in /Library/WebServer/Documents/hi/index.php on line 2
Warning: file_get_contents(https://ojooo.com) [function.file-get-contents]: failed to open stream: operation failed in /Library/WebServer/Documents/hi/index.php on line 2
正常file_get_content(https://yahoo.com);
工作fine.Please有人幫我
是的,我打開了php.ini文件!但是你知道在終端中找到文本的快捷方式? –
嘿,現在我只得到空白文件 –