note 38695 added to ref.exec

From: Date: Sat, 03 Jan 2004 08:48:19 +0000
Subject: note 38695 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-62844@lists.php.net to get a copy of this message
You Cannot make a zip file with ZIP Function, but with Execution you can do it. This Function will make a Zip file on current directory (on Linux) <?php function MakeZipFile($ZipFileName,$FileSelected); { system("zip -9 -u -q -r $ZipFileName,$FileSelected"); } // create test.zip --> all file include directories and dir-content MakeZipFile("test.zip","*"); //create test2.zip in other directory --> all php files MakeZipFile("/tmp/test2.zip","*.php"); ?> ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38695 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38695&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38695&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#62844) next »