using zip from php4

From: Date: Sat, 28 Apr 2001 19:12:45 +0000
Subject: using zip from php4
Groups: php.general 
Request: Send a blank email to php-general+get-50769@lists.php.net to get a copy of this message
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" [ shawn@remotebackupcenter.com / www.remotebackupcenter.com ]

« previous php.general (#50769) next »