Page 1 of 1

Reliably start a background process with browser

Posted: Wed Aug 27, 2003 5:02 am
by stevehaysom
Hi

I am writing a mailing list manger using PHP and MySQL, using PHP 4.3 and FreeBSD Linux.

I need to start a background process that can carry on after a browser process has finished, so that a mailing can be sent out.

Can anyone tell me the best way to do this, or point me to an article/tutorial. I've tried using set time limit, but it only sent out 2 emails before stopping. Fork looks a bit complicated.

Thanks for any help

Steve

Posted: Wed Aug 27, 2003 9:34 am
by pootergeist
if you can exec then a wget script call with a nulled output should (?) work

exec('wget http://www.where-ever.com/script.php > /dev/null');

then the server is calling the page rather than the browser.

Posted: Thu Aug 28, 2003 4:07 am
by stevehaysom
Thanks. I'll try it.

Steve