Here is the TK:
There is a list of links to files, getting the link for one cycle foreach
cycle. I need to write these files to a zip archive and suggest the user to download it.
how to do it? With all the links pointing to another server.
that's what happened with me
$zip = new ZipArchive; $zip->open('/user/'.$id.'.zip', ZipArchive::CREATE); foreach ($response->data as $item) { $zip->addFile("$item->images->standard_resolution->url"); echo $item->images->standard_resolution->url; echo '<br>'; $zip->close();
But no file is created in the users
folder :(