Find a Siteground server configured under their "new way"...
E.g. m30.siteground.biz
Attempt to run code like:
$body = file_get_contents('https://example.com/file.txt');
We do this in core like these examples:
That $body now contents the content of file.txt
$body is empty
m30.siteground.biz
The correct way is to code in defense - if file_get_contents is not working then fallback to CURL (which is x15 more code than a single file_get_contents line of code) - we could implement calls to FOFDownload
which is in core Joomla ?
Labels |
Added:
?
|
I was in a rush and did not scratch too deep - I know FoFdownload has curl and other adapters - I guess JHttp also does :)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-02-02 21:11:50 |
Closed_By | ⇒ | PhilETaylor |
I don't think you need FOFDownload. JHttp should be able to do that as well. Or do I miss something?