Re: [PHP] Piping into script...

2001-11-20 Thread Attila Strauss
hi check this: http://www.linuks.net/robot.phps best regards attila strauss > > If I want to pipe, say an incoming email to a PHP script (assuming I > have php compiled as a cgi binary), how do I deal with when it needs to > receive the stream of data, how to figure out when there is n

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > Steve Werby wrote: > > > Exactly. It sounds like you're doing INSERTs so unless you're doing an > > UPDATE or SELECT that can give unexpected results if another instance of the > > script is running at the same time or you have other scripts acces

Re: [PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
Steve Werby wrote: > Exactly. It sounds like you're doing INSERTs so unless you're doing an > UPDATE or SELECT that can give unexpected results if another instance of the > script is running at the same time or you have other scripts accessing the > same files/tables that may run at the same tim

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"David Robley" <[EMAIL PROTECTED]> wrote: > On Wed, 21 Nov 2001 14:52, Ashley M. Kirchner wrote: > > David Robley wrote: > > > The OS will take care of this by firing up another instance of > > > your script. All you need to do is be aware of the possibility of > > > multiple instances doing ?thin

Re: [PHP] Piping into script...

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 14:52, Ashley M. Kirchner wrote: > David Robley wrote: > > The OS will take care of this by firing up another instance of > > your script. All you need to do is be aware of the possibility of > > multiple instances doing ?things? at around the same time and make > > sure that y

Re: [PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
David Robley wrote: > The OS will take care of this by firing up another instance of > your script. All you need to do is be aware of the possibility of > multiple instances doing ?things? at around the same time and make sure > that you don't have say several instances all writing to the same fi

Re: [PHP] Piping into script...

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 13:04, Ashley M. Kirchner wrote: > If I want to pipe, say an incoming email to a PHP script (assuming > I have php compiled as a cgi binary), how do I deal with when it needs > to receive the stream of data, how to figure out when there is no more > coming before it actuall

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > If I want to pipe, say an incoming email to a PHP script (assuming I > have php compiled as a cgi binary), how do I deal with when it needs to > receive the stream of data, how to figure out when there is no more > coming before it actually sta

[PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
If I want to pipe, say an incoming email to a PHP script (assuming I have php compiled as a cgi binary), how do I deal with when it needs to receive the stream of data, how to figure out when there is no more coming before it actually start to parse the information? And how do people dea