Here is the easiest way to transfer file from URL to your host or server

PHP Code:
<?php
set_time_limit
(0); //Unlimited max execution time
...