Re: forking processes

From: Date: Mon, 05 Feb 2001 07:35:43 +0000
Subject: Re: forking processes
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5373@lists.php.net to get a copy of this message
Jason, I have recently read about another quite useful way to do what you want: create a separate php script file the purpose of which is to do the actual mail sending. From your main PHP script on the website, use system() [see documentation] to call that script and let that script process the mail sending in the background. Your user won't have any feedback about the mail sending process, but you could design a system that logs the process information to a file or database, and display that information once the sending is done. "Jason Hoover" <jhoover@prg.com> a écrit dans le message news: 39BCC5694544D311975A00508B0CBDC9020429B5@PRGEXCHW... > I have a form that launches an e-mail message to numerous people as > determined by the user filling out the form (user picks people from select > lists...e-mail addresses are kept in database,etc..). > > When the form is submitted the user is forced to wait until the script that > launches the e-mails finishes it's job, before he/she is redirected to > another page in the application. > > Question: Is there a way to launch this e-mail script as a separate > process, so the user isn't forced to wait through this script before being > redirected.? I know in Java you can do this, but is is possible in > Interpreted languages? > > > Jason Hoover > Web Application Programmer > > Entolo > 2299 Territorial Road > St. Paul, MN 55114 > Phone: 763.847.8022 > Fax: 763.642.1600 > jhoover@entolo.com > www.entolo.com > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#5373) next »