Re: spawing new PHP process
| From: | Adam Voigt | Date: | Tue, 26 Nov 2002 17:17:10 +0000 |
| Subject: | Re: spawing new PHP process | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126134@lists.php.net to get a copy of this message | ||
Have your page before the email's would actually be sent, submit to a
page with a frameset, in the bottom frame have a height of 1 pixel so
that it's invisible. Then, in your PHP page, add something like:
<script language="javascript">
parent.topframe.progress.value =
eval(parent.topframe.progress.value)+1;
</script>
Have that print after every iteration of a mail being sent, and ofcourse
you would have to create the necessary text boxes on your top frame and
everything, but that would make it appear to be working to the user
because the count of email's being sent would keep going up till it was
done.
On Tue, 2002-11-26 at 11:41, ROBERT MCPEAK wrote:
> I'm interested in spawing a new PHP process -- if that's the correct terminology.
>
> The situation is that I've got a very slow loading page, where, for example, I'm
> using PHP to send, say, 1000 emails. The user clicks submit, and, although PHP is firing out the
> emails, it appears to the user that page is hanging. I'd like to somehow send that process to
> the background and let the page load straight-away.
>
> In another scripting language I've used, this function was called "spawn."
>
> Do we have something like this in PHP (I know we do!! Just can't find it.) I've
> looked through the docs but don't see what I'm looking for.
>
> Thanks in advance.
>
> -Bob
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc