Re: [PHP] [cli] ^D

2003-10-21 Thread Decapode Azur
> > 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 distribu

Re: [PHP] [cli] ^D

2003-10-20 Thread Marek Kilimajer
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. (Wa