Re: Run Process in back ground

From: Date: Mon, 11 Feb 2008 19:30:36 +0000
Subject: Re: Run Process in back ground
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269121@lists.php.net to get a copy of this message
On Feb 11, 2008 2:23 PM, Richard Kurth <richardkurth@centurytel.net> wrote: > Is there a way that I can call a function that will send an email and > then move on redirecting to another website without having to what for > the email to send? > SendEmail($memberemail,$MailFrom,$MailHost); > header("Location:http://domain.com"); There are a variety of ways, including setting a cron, running an external script, or placing SendEmail() after the header("Location: xxx") call and inserting ignore_user_abort(1) before redirecting the user, in case PHP and Apache learn that the socket is closed to the user. -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?>

« previous php.general (#269121) next »