Hi guys

I'm trying to compress txt file to a zip file stored on a google cloud 
storage bucket.

I've written a function below which works on local files but not on files 
stored on the cloud bucket.

I suspect the problem is the ZipArchive class, however, the 1.8.9 App 
Engine release notes 
<https://code.google.com/p/googleappengine/wiki/SdkReleaseNotes> indicate 
that the zip extension is now supported.

   

    
  function CompressFile($inputFilePath, $ZipArchivePath, $fileNameinArchive)
    {
    $zip = new ZipArchive();
    $zip->open($ZipArchivePath,  ZipArchive::CREATE);
    $zip->addFile($inputFilePath, $fileNameinArchive);    
    $zip->close();
    
    }




Any suggestions?

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to