Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ?
[...]
Take a look at pcntl functions, namely pcntl_signal.
But this extension is not enabled by default.
Ok thanks a lot.
Will those functions be integrated in the next main release?
This question is just to know if I distribute
hi all,
Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ?
My cli php script runs a loop while(1) and I would like to find a way to
stop it from a user action.
(Waiting a better solution I've made: if(file_exists('./stop'))
and type the command stop to stop the script.
I can not use
Take a look at pcntl functions, namely pcntl_signal. But this extension
is not enabled by default.
Decapode Azur wrote:
hi all,
Is there a way, for a cli script, to detect Ctrl_D or Ctrl_Z ?
My cli php script runs a loop while(1) and I would like to find a way to
stop it from a user action.
3 matches
Mail list logo