我有这个应用程序outlook从sendthisfile.com.
现在在我的localhost机器上测试应用程序时,zipArchive运行良好,文件提取到我各自的localhost文件夹中。现在,当我尝试在我的服务器上运行它时,它运行zipArchive不正常。没有错误。上有一个文件名$zip->open($filename)。
我的问题是为什么它不能在我的服务器上提取?
我的代码如下:
$path = "my-folder/"; $zip = new ZipArchive; $resFile = $zip->open($filename);
if ($resFile === TRUE) {
$zip->extractTo($path);
$zip->close();
echo "Woot successfully extract $filename to $path";
echo "<br />";
} else {
echo "Error opening the file $filename";
}
有人可以帮我解决这个问题吗?