RE: [PHP-WIN] forking processes

From: Date: Mon, 05 Feb 2001 22:13:24 +0000
Subject: RE: [PHP-WIN] forking processes
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5399@lists.php.net to get a copy of this message
Your pages are dynamic instead of static HTML, which imposes a bit of time to generate. Email sending in PHP doesn't actually take much time, as it doesn't actually "send email", but queues the message for the email server to do the actual sending. If you are experiencing slowness, your email script might be complex in code and therefore it would take time to interpret the script. For high performance, you could try compiled, rather than interpreted languages. Your form could action a Java servlet which would run in its process. -----Original Message----- From: Alain Fontaine [mailto:alain@valain.com] Sent: Monday, 5 February 2001 6:36 PM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] forking processes 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 (#5399) next »