views:

15

answers:

1

Hello,

I have a standalone PHP script and I would handle signal sent from Windows OS to do a graceful shutdown when "kill signal" is issued.

Do you know what to do that on Windows OS?

Thank's in advance.

Regards,

Alberto

+2  A: 

PHP doesn't support signal handling on Windows. Sorry.

Daniel Egeberg
In particular, the only way PHP can handle signals is with the [pcntl_signal](http://php.net/manual/en/function.pcntl-signal.php) function, part of the [pcntl extension](http://www.php.net/manual/en/intro.pcntl.php), which doesn't function on Windows.
Charles