MAC osX で php を有効にしましたが、通常の php コードは正常に動作しますが、今日は奇妙なエラーが 1 つ発生しました
<?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);
は正常に動作しています。誰か助けてください