|
|
|
| Подскажите что могут означать вот эти ошибки
Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Z:\home\localhost\www\vk-auth\index.php on line 34
Warning: file_get_contents(https://oauth.vk.com/access_token?client_id=4222055..) [function.file-get-contents]: failed to open stream: No error in Z:\home\localhost\www\vk-auth\index.php on line 34 | |
|
|
|
|
|
|
|
для: OlegBas
(03.03.2014 в 13:02)
| | Вы пытаетесь получить данные по безопасному соединению, а соответствующее расширение у вас не подключено. | |
|
|
|
|
|
|
|
для: confirm
(03.03.2014 в 14:45)
| | Как называется расширение и где его подключить? | |
|
|
|
|
|
|
|
для: OlegBas
(03.03.2014 в 16:24)
| | php_openssl, все расширения подключаются в php.ini, на реальном сервере через панель управления. | |
|
|
|
|
|
|
|
для: confirm
(03.03.2014 в 16:37)
| | расширение включил , в папку ext поместил, но почему-то при считывании сетевого файла по защищенному протоколу(https) PHP все равно выдает эти предупреждения
Я использую следующий код
$token = json_decode(file_get_contents('https://oauth.vk.com/access_token' . '?' . urldecode(http_build_query($params))), true);
Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Z:\home\localhost\www\vk-auth\index.php on line 33
Warning: file_get_contents(https://oauth.vk.com/access_token?client_id=4222055&client_secret=YqzWlS2dkZaIMYGR5d7f&code=128488d13351486c73&redirect_uri=http://localhost/vk-auth) [function.file-get-contents]: failed to open stream: No error in Z:\home\localhost\www\vk-auth\index.php on line 33 | |
|
|
|
|
|
|
|
для: OlegBas
(03.03.2014 в 17:43)
| | Значит у вас кроме этого запрещено в качестве имени использовать url, смотрите allow_url_fopen | |
|
|
|
|
|
|
|
для: confirm
(03.03.2014 в 17:49)
| | allow_url_fopen = On | |
|
|
|
|
|
|
|
для: OlegBas
(03.03.2014 в 18:14)
| | А версия РНР? | |
|
|
|
|
|
|
|
для: confirm
(03.03.2014 в 18:34)
| | все решил, спасибо, забыл перезагрузить | |
|
|
|