Shutdown function

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Is it possible to get exit status in shutdown function. For example if
I call exit(1), How to get in shutdown functino that exit status was 1.

Re: Shutdown function wrote:
Quoted text here. Click to load it

I think only if you are using a command line access because the script
will die on the server so there will be no means of accessing that
'with' the script.

You can however use a string "exit("there has been an error");, this is
output by the server and NOT the script

But be careful at what you output, I don't think you can turn off this
output. So whatever you put in as a string will output no matter your
error settings.  Someone correct me on this if I am wrong.

You  may want to review your code logic and maybe use a different
capture method such as "return 'some_value'";

Just a thought though.


Site Timeline