vagrantで開発環境を構築しているのですが、file_get_contentsができません。
cakephpです。
エラー内容は以下になります。
PHP Notice: Undefined variable: http_response_header in /vagrant/app/webroot/..... PHP Warning: file_get_contents(https://local.xxx.jp/xxxx/xxxxx/): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error...)
どうやらfile_get_contentsの前に$http_response_headerがあるのですが、ここで値が取得できていないようです。
allow_url_fopen = Onにはなっています。
原因がわからず困っています。
ご教示のほど、よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/21 14:46
2018/03/21 14:53
2018/03/21 15:01