I am using XAMPP hosted on a Windows XP SP3 box. According to where I downloaded the package, openSSL was enable when PHP was compiled. Is there a setting in a php.ini file that I need to enable for the server to be able to speak in https? The error file_get_contents throws is as follows:
Warning: file_get_contents(https://www.cia.gov/) [function.file-get-contents]: failed to open stream: Invalid argument in C:\xampp\htdocs\index.php on line 13
Here's my script's entirety:
- Code: Select all
I have tried this same exact code on my own hosting package I am paying for, which is on a remote linux shared server, and the above code works perfectly.