Fetches a file located at $url and saves it to $destinationPath.
public static fetchRemoteFile ( string $url, string $destinationPath = null, integer $tries, integer $timeout = 10 ) : boolean | ||
$url | string | The URL of the file to download. |
$destinationPath | string | The path to download the file to. |
$tries | integer | (deprecated) |
$timeout | integer | The amount of seconds to wait before aborting the HTTP request. |
Результат | boolean | `true` on success, throws Exception on failure |