note 6313 deleted from function.exec by vincent

From: Date: Wed, 10 Sep 2003 18:52:58 +0000
Subject: note 6313 deleted from function.exec by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-55987@lists.php.net to get a copy of this message
Note Submitter: sam@netexposure.com.au ---- After scanning through <pre>php-4.0.1pl2/ext/standard/exec.c</pre> and guessing a bit, I discovered that shell_exec can be used like this:<br> <pre> $zipfile=shell_exec("zip -r - ./backups/"); </pre> <br>I found this useful when exec() didn't work the way I expected it to.

« previous php.notes (#55987) next »