I have code for 3 types of images copied into zip folder. 1 is thumb , 2 is bigThumb and 3rd is original image. thumb and bigThumb images is working fine but original image copied also into zip folder but with 0 bytes. This functionality is working fine in my local xampp but not working in live server. Pls help me.
This is my code ::
$zip = new ziparchive;
if ($zip->open('foldernameofzipfile/tourappTest.zip') === TRUE)
{
$zip->addFile("copiedpath/".$nvLastId."_".$neworignalimagename, 'zipfolderpath/'.$nvLastId.'_'.$neworignalimagename);
$zip->addFile("copiedpath/".$nvLastId."_".$neworignalimagename, 'thumbandzipfolderpath/'.$nvLastId.'_'.$neworignalimagename);
$zip->addFile("copiedpath/".$nvLastId."_".$neworignalimagename, 'bigThumbandzipfolderpath'.$nvLastId.'_'.$neworignalimagename);
}
$zip->close();