Hello all,
I am attempting to write a script which will compress a group of files on my server
into a zip file, and then set a password on the zip file. The code below is what I
have come up with:
<?
$zipfile = popen("zip -eR /tmp/test.zip tf/*", "w");
fputs($zipfile, "testpass\n\r");
fputs($zipfile, "testpass\n\r");
pclose($zipfile);
echo("Zip file creation complete.");
?>
Now, the problem is... the script finishes fine, and I get the "Zip file creation
complete" message in my browser... but when I check /tmp, there is no test.zip file
there. Any ideas as to why?
Any help you can offer would be appreciated.
Sincerely,
Shawn Reed
Chief Technology Officer
RBC Incorporated - home of "Remote Backup Center"
[ [EMAIL PROTECTED] / www.remotebackupcenter.com ]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]