such as the title.
cannot use set_time_limit (0) because online projects will not allow you to execute indefinitely
all I can think of now is to use curl
curl_setopt($ch, CURLOPT_WRITEFUNCTION, function($ch ,$str){});
read a small portion at a time and then write to the file.
I don"t know if there is a better way. I hope you can give me some advice.