AdmintoolsHelperDownload::getCURL
Downloads the contents of a URL and writes them to disk (if $fp is not null) or returns them as a string (if $fp is null)
Signature
private function getCURL(string
$url,
[resource
$fp = null,
[boolean
$nofollow = false]] )
Parameters
-
$url
- The URL to download from
-
$fp
- The file pointer to download to. Omit to return the contents.
-
$nofollow
- Should we follow 301/302/307 redirection HTTP headers?
Returns
- bool|string
- False on failure, true on success ($fp not null) or the URL contents (if $fp is null)