Important note about ranges: byte ranges start at 0. This means that the first 500 bytes of a file are from 0
to 499, NOT from 1 to 500. If you ask more bytes than there are in the file or a range which is invalid or does
not exist this method will return false.
public getFromURL ( string $url, integer $from = null, integer $to = null ) : boolean | string | ||
$url | string | The URL to download from |
$from | integer | Byte range to start downloading from. Use null (default) for start of file. |
$to | integer | Byte range to stop downloading. Use null to download the entire file ($from will be ignored!) |
Результат | boolean | string | The downloaded data or false on failure |