Hi,
i have a ZIP archeive,
and i want to add afile into it,
am writing this code:
global $myzip, $file, $newfile;
$myzip= 'loadedprograms/ReadMeOH.zip';
$file = 'loadedprograms/9900.JPG';
$newfile = '99.JPG';
$zip = new ZipArchive;
if ($zip->open($myzip) === TRUE) {
if($zip->addFile($file, $newfile)) {
$zip->close();
echo 'ok';
}
} else {
echo 'failed';
}
when the code executed, i see no thing no result, all blank,
no OK and no FAILED ...
and when i check the ZIP file, nothing added into it ~!!
please please please help,