ID: 14747 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Suspended Bug Type: Feature/Change Request Operating System: PHP Version: 4.1.1 New Comment:
just use exit(number) it returns the exit code (and also prints the value). The printing will be removed in PHP5 (if it is a number). Derick Previous Comments: ------------------------------------------------------------------------ [2001-12-28 16:39:37] [EMAIL PROTECTED] Hi, I tried to use PHP in connection with shellprogramming. I would be fine if you could return exit codes to shellscripts. So that you can use something like "if [ $? -eq 0 ]" to test if the PHP-Script had run succesful. So wouldn`t need to use Perl in future. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14747&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]