Re: Run Process in back ground

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 11, 2008 2:23 PM, Richard Kurth <richardkurth@xxxxxxxxxxxxxx> 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); } ?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux