Zip Processor PHP 3 Support Product Page
Solved
Do I need to set permission?
Reported 09 Sep 2010 19:27:17
1
has this problem
09 Sep 2010 19:27:17 simon jennings posted:
Hi This must be a simple one!
I'm trying to download a zip backup of a folder containing images.
file structure
/admin/export-zip.php (the file with the extension code shown below)
/uploads/images the folder to export as a zip
/ScriptLibrary
The code from Dreamweaver CS5 of export-zip.php is as follows.
<?php require_once('../ScriptLibrary/DMXZip.lib.php'); ?>
<?php
// FileZip Processor 3.0.3
$zip1 = new ZipProcessor;
$zip1->scriptFolder = "../ScriptLibrary";
$zip1->source = "folder";
$zip1->overwrite = true;
$zip1->action = "zip";
$zip1->comment = "\n ";
$zip1->uploadFolder = "";
$zip1->zipName = "zipfile1";
$zip1->downloadZip = true;
$zip1->deleteAfterZip = false;
$zip1->defaultFile = "";
$zip1->folder = "../uploads/images";
$zip1->ProcessFiles();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
This all looks OK.... What's up? Do I need any special permissions to be set on /admin or /uploads/images?
Look forwards to you helping with what must be a basic error on my part!
Thanks
Simon
Promoted Solutions
Replied 14 Sep 2010 00:18:48
Hi
I've changed the set up to create a zip on the server in a specified directory. The page then provides a clickable link to the zip. Which works fine and is good enough for my requirements.
I thought that the zip should download automatically on page load, but that seems to cause the error.
Simon
I've changed the set up to create a zip on the server in a specified directory. The page then provides a clickable link to the zip. Which works fine and is good enough for my requirements.
I thought that the zip should download automatically on page load, but that seems to cause the error.
Simon
Replied 10 Sep 2010 10:56:52
Hello Simon,
Try to set the script to save the zip on the server and afterwards check if it is not corrupted.
Also try another Archive program to unzip.
Also provide info on your PHP version.
Regards,
Try to set the script to save the zip on the server and afterwards check if it is not corrupted.
Also try another Archive program to unzip.
Also provide info on your PHP version.
Regards,
Replies
Replied 09 Sep 2010 19:53:40
09 Sep 2010 19:53:40 simon jennings replied:
error message is as follows
Winzip opens and pop up says
Cannot open file. It does not appear to be a valid archive.
If you downloaded this file try downloading the file again.
Winzip opens and pop up says
Cannot open file. It does not appear to be a valid archive.
If you downloaded this file try downloading the file again.
Replied 10 Sep 2010 10:56:52
10 Sep 2010 10:56:52 Miroslav Zografski replied:
Hello Simon,
Try to set the script to save the zip on the server and afterwards check if it is not corrupted.
Also try another Archive program to unzip.
Also provide info on your PHP version.
Regards,
Try to set the script to save the zip on the server and afterwards check if it is not corrupted.
Also try another Archive program to unzip.
Also provide info on your PHP version.
Regards,
Replied 14 Sep 2010 00:18:48
14 Sep 2010 00:18:48 simon jennings replied:
Hi
I've changed the set up to create a zip on the server in a specified directory. The page then provides a clickable link to the zip. Which works fine and is good enough for my requirements.
I thought that the zip should download automatically on page load, but that seems to cause the error.
Simon
I've changed the set up to create a zip on the server in a specified directory. The page then provides a clickable link to the zip. Which works fine and is good enough for my requirements.
I thought that the zip should download automatically on page load, but that seems to cause the error.
Simon