There is an xls document which links to images (2000 lines) to a third-party resource. 
I copied all the links and put in a notebook and put it on the server.
$imageUrl = './bb.txt'; $imageFilePath = './img/'.foto.'.jpg'; // вопрос тут.как ставить оригинальное имя изображения? file_put_contents($imageFilePath, file_get_contents($imageUrl)); If I put the name of the photo that will be assigned to it for example foto, then it downloads only 1 photo. I need a crowd.
randomized the name
$ran= substr(uniqid('', true), -5); $imageUrl = './bb.txt'; $imageFilePath = './img/'.$ran.'.jpg'; file_put_contents($imageFilePath, file_get_contents($imageUrl)); still only downloads 1 photo. example from where to download files here badja94f.beget.tech/bb.txt
$ran= substr(uniqid('', true), -5); $imageUrl = './bb.txt'; $imageFilePath = './img/'.$ran.'.jpg'; file_put_contents($imageFilePath, file_get_contents($imageUrl));$ran= substr(uniqid('', true), -5); $imageUrl = './bb.txt'; $imageFilePath = './img/'.$ran.'.jpg'; file_put_contents($imageFilePath, file_get_contents($imageUrl));still only downloads 1 photo. example here badja94f.beget.tech/bb.txt - Andrey Vladimirovich