PHP as shell script - generating exit status
| From: | Dave VanAuken | Date: | Thu, 10 May 2001 14:27:00 +0000 |
| Subject: | PHP as shell script - generating exit status | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52285@lists.php.net to get a copy of this message | ||
yes I know, PHP wasn't meant for this task... the question has been
asked a number of tmes since V2...
we have exit() which, all though you can place a variable or string in
it, only prints it to the screen prior to killing itself (not sending
as an exit code)... same with die AFAIK.
is there any way to generate a exit code on the completion of a php
script that will be interpreted by the program or CGI calling the
script...
thanks
Dave