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:[EMAIL PROTECTED]]
Sent: Monday, 5 February 2001 6:36 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> www.entolo.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]