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.