How would I go about zipping a remote file?
So far I have this script. It is not working. It works with local files though:
<?php
ini_set("memory_limit","-1");
$z= new ZipArchive;
if ($z->open('test2.zip') === TRUE) {
$z->addFile('http://www.google.co.uk/intl/en_uk/images/logo.gif', 'google.gif');
$z->close();
echo 'opened correctly';
} else {
echo 'failed';
}