PHP在Google App Engine中解压缩文件

时间:2014-06-10 11:51:29

标签: php google-app-engine unzip

我正在使用Google应用引擎1.9,我想使用PHP解压缩上传的.zip文件。由于ZipArchive在App Engine中不可用,我尝试使用PclZip(http://www.phpconcept.net/pclzip/),如本文所述

https://code.google.com/p/googleappengine/issues/detail?id=9856

然而,一旦我尝试了,我就会收到以下错误。

在这里,我正在提供.zip文件的公共网址。并且网址类似于 https://my-storage.storage.googleapis.com/folder/my_file.zip (这不是真正的网址)。

"PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file 'https://my-storage.storage.googleapis.com/folder/my_file.zip'"

我也尝试将网址更改为 gs://my-storage/folder/my_file.zip'格式,它会给我以下错误。

 "PCLZIP_ERR_BAD_FORMAT (-10) : Unable to go to the end of the archive 'gs://my-storage/folder/my_file.zip'"

我在这里做错了什么?

0 个答案:

没有答案