Zip Processor PHP 3 Support Product Page

In progress

Trying to redirect to the download folder via recordset or querystring

Reported 01 Dec 2011 00:23:51
1
has this problem
01 Dec 2011 00:23:51 Bruce Schueller posted:
Problem 1:
Trying to assign a querystring to "$zip1->folder = $_GET['Topic'];" always fails. (See code below.)

Problem 2:
Including a session at the top of the page stops the functionality of the code below.

Problem 3:
Creating a recordset and assigning it to "$zip1->folder = $row_Recordset1['PathDownload'];" always fails.

If I code the actual directory path to the content I wish to download it works. I just don't want to have to create a unique page for every situation.

Using Zip Processor PHP 3.0, Vista, WAMPServer.

<?php
// FileZip Processor 3.0.3
$zip1 = new ZipProcessor;
$zip1->scriptFolder = "../ScriptLibrary";
$zip1->source = "folder";
$zip1->overwrite = false;
$zip1->action = "zip";
$zip1->comment = "";
$zip1->uploadFolder = "";
$zip1->zipName = "Our Files";
$zip1->downloadZip = true;
$zip1->deleteAfterZip = false;
$zip1->defaultFile = "";
$zip1->folder = $_GET['Topic'];
$zip1->ProcessFiles();
$zipGoTo = "SubmitButton.php";
header(sprintf("Location: %s", $zipGoTo));
?>

Edited by - Bruce Schueller on 01 Dec 2011  00:25:36

Replies

Replied 05 Dec 2011 14:00:18
05 Dec 2011 14:00:18 Miroslav Zografski replied:
Hello Bruce,

this is under investigation.

Reply to this topic