Re: [PHP] background process

2005-01-27 Thread Richard Lynch
mbneto wrote: > I'd like to create a script that will act as a daemon. > > Now I simply add while() { do stuff } > > But this forces me to call it script.php &. Is there a way to make > this work without the & You're probably better off using & when calling it, but: http://php.net/pcntl_fork

RE: [PHP] Background process

2003-08-14 Thread Chris W. Parker
Jackson Miller on Wednesday, August 13, 2003 12:21 PM said: > Is there a faster way to start a background process? Maybe you can pause your script somehow before you execute the redirect? Also, are you sure that it's not redirecting until the script starts? Maybe i

Re: [PHP] Background process

2003-08-14 Thread Nicholas Robinson
Are you sending a after the re-direct to ensure your browser loads the page as soon as possible rather than delaying? If not, this could appear that it isn't re-directing until the script starts. On Wednesday 13 Aug 2003 8:21 pm, Jackson Miller wrote: > I have a script that starts a background

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
You don't need to modify sendmail's config, you simply need to modify how you are calling sendmail from PHP. Chances are the server you are on already flushes the queue occasionally. You'd need to try to figure out how often, perhaps simply by trial and error. Since you have no control over the

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Pupeno
Rasmus Lerdorf wrote: > Simply configure your MTA to queue requests coming from PHP. Your php.ini > file has the sendmail invocation line that is used by PHP's mail() > function. Most MTA's out there have a sendmail-like interface and most > have a way to tell it to simply queue the request and

Re: [PHP] Background process (sending mails)

2002-08-21 Thread Rasmus Lerdorf
Simply configure your MTA to queue requests coming from PHP. Your php.ini file has the sendmail invocation line that is used by PHP's mail() function. Most MTA's out there have a sendmail-like interface and most have a way to tell it to simply queue the request and return immediately. For sendm