I have been trying for the last several hours to get this working, but as of yet I have had no luck.
What I am trying to do is read in an XML file (using the file-get-contents function) from a https:// URL. I have read through Google that there are many issues that come into play when reading from https:// compared to http:// which appears to work fine. The only problem is http:// won't work for the file I am trying to access. When I attempt to access it via http:// it redirects to the https:// version automatically.
Is there a simple way to get around this issue? As I am on shared hosting I am not able to edit any PHP or Apache files. I did read that some people had success when enabling OpenSSL. I have tried that, and it did not work for me.
The error I receive is as follows:
Warning: file_get_contents({aml url}) [function.file-get-contents]: failed to open stream: Invalid argument in {my file} on line 175
Thanks in advance, I really hope somebody can help because this issue is really bothering me 😕.