note 106303 deleted from features.commandline by cmb

From: Date: Sun, 30 Jun 2019 09:54:20 +0000
Subject: note 106303 deleted from features.commandline by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211441@lists.php.net to get a copy of this message
Note Submitter: me at unreal4u dot com ---- 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.

« previous php.notes (#211441) next »