Re: [PHP] Launch a seperate process

2007-03-06 Thread Richard Lynch
On Tue, March 6, 2007 4:06 pm, Brad Fuller wrote: > Is there a way in a php script to launch another script but output > something > and exit (terminating the original request) before that script > finishes? > > I have a script that accepts data, does some stuff, returns a response > and > exits. >

Re: [PHP] Launch a seperate process

2007-03-06 Thread fedt
pcntl_ fork() and pcntl_ wait(), yo On 3/6/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Is there a way in a php script to launch another script but output something and exit (terminating the original request) before that script finishes? I have a script that accepts data, does some stuff, retur

Re: [PHP] Launch a seperate process

2007-03-06 Thread Jon Anderson
fedt wrote: pcntl_ fork() and pcntl_ wait(), yo If you're using PHP as an apache DSO, you may find that those functions aren't available. If you don't have the pcntl_* functions available, there a less attractive options...I've done a request with curl with a short timeout to "spawn" the secon

RE: [PHP] Launch a seperate process

2007-03-06 Thread Brad Fuller
tyvm, I will check it out right away! B > -Original Message- > From: fedt [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 5:17 PM > To: Brad Fuller > Cc: php-general@lists.php.net > Subject: Re: [PHP] Launch a seperate process > > pcntl_ fork() and pcn