note 31235 added to function.shell-exec

From: Date: Mon, 14 Apr 2003 19:18:07 +0000
Subject: note 31235 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-46611@lists.php.net to get a copy of this message
As far as error checking on the last example. Several of the shells have the && operator, so you just string your commands together using it instead of ; If at any time any of the programs fail, you will return without running the rest -- http://www.php.net/manual/en/function.shell-exec.php http://master.php.net/manage/user-notes.php?action=edit+31235 http://master.php.net/manage/user-notes.php?action=delete+31235 http://master.php.net/manage/user-notes.php?action=reject+31235

« previous php.notes (#46611) next »