Try the following script to see if there is an https wrapper available for your php scripts.
<?php
$w = stream_get_wrappers();
echo 'openssl: ', extension_loaded ('openssl') ? 'yes':'no', "\n";
echo 'http wrapper: ', in_array('http', $w) ? 'yes':'no', "\n";
echo 'https wrapper: ', in_array('https', $w) ? 'yes':'no', "\n";
echo 'wrappers: ', var_dump($w);
the output should be something like
?>openssl: yes
http wrapper: yes
https wrapper: yes
wrappers: array(11) {
[...]
}
http://stackoverflow.com/questions/1975461/file-get-contents-with-https
No comments:
Post a Comment