原始图像使用php复制zip文件夹中的0个字节

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();

Now solved this question. I just changes in the coding of when i run first time original image then not working but i copied first line and put on end, then working good. So solved the issue.