前提・実現したいこと
質問お願いいたします。
以下のコードで実行するとwarningが出てしまい、結果がかえってこない状態で、
原因が分からず困っています。
発生している問題・エラーメッセージ
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\MAMP\htdocs\api\index.php on line 3 Warning: file_get_contents(): Failed to enable crypto in C:\MAMP\htdocs\api\index.php on line 3 Warning: file_get_contents(https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=AIzaSyCw7QyQFgPy26iqGWIbV52jQRSe1ECGwjM): failed to open stream: operation failed in C:\MAMP\htdocs\api\index.php on line 3
該当のソースコード
php
1<?php 2 3echo file_get_contents("https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=AIzaSyCw7QyQFgPy26iqGWIbV52jQRSe1ECGwjM"); 4 5?>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/19 12:18
2018/05/19 12:21
2018/06/04 08:40
2018/06/04 08:47