note 106303 added to features.commandline

From: Date: Wed, 26 Oct 2011 16:28:35 +0000
Subject: note 106303 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-184143@lists.php.net to get a copy of this message
You could use the Linux way of knowing that everything went ok by dying with a numeric code: 0 if everything went ok and practically anything else if something goes terribly wrong. That way; <?php // hello.php echo 'hello'; exit(0); ?> <?php // bye.php echo 'bye'; exit(1); ?> <?php // hello-again.php echo 'hi world!'; exit(0); ?> calling: php hello.php && php bye.php && php hello-again.php would only execute the first two scripts, the last one doesn't get executed because an error ocurred in that script. Greetings. ---- Server IP: 69.147.83.197 Probable Submitter: 188.201.80.178 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/106303 Del: integrated -- https://master.php.net/note/delete/106303/integrated Del: useless -- https://master.php.net/note/delete/106303/useless Del: bad code -- https://master.php.net/note/delete/106303/bad+code Del: spam -- https://master.php.net/note/delete/106303/spam Del: non-english -- https://master.php.net/note/delete/106303/non-english Del: in docs -- https://master.php.net/note/delete/106303/in+docs Del: other reasons-- https://master.php.net/note/delete/106303 Reject -- https://master.php.net/note/reject/106303 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184143) next »