Re: Threading objects
| From: | Rasmus Lerdorf | Date: | Wed, 12 Mar 2003 22:30:17 +0000 |
| Subject: | Re: Threading objects | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139407@lists.php.net to get a copy of this message | ||
So your problem has nothing to do with threading. What you need an an
asynchronous way to connect to multiple sockets and deal with responses as
they become available. See php.net/socket_select
-Rasmus
On Thu, 13 Mar 2003, Kris wrote:
> Is it possible to some how thread a php script threw apache. There has to be
> something you can do, it seems there is always something you can do :)
> What I want is the following.
> I administer a mailing list that has a few hundred thousand subscribed
> recipients.
> I've written a script that runs threw the DB and validates the email
> address.
> First by format then by connecting to the mail server.
> This script takes way to long to run as it has to do one at a time.
> I want to some how thread this so it can be validating multiple emails at a
> time.
> Please excuse my ignorance on the subject my web programming experience is
> rather limited.
>
> Thanks
>
> Kris
>
>
>
> ----- Original Message -----
> From: "Rasmus Lerdorf" <rasmus@lerdorf.com>
> To: "Kris" <kreid2@bigpond.net.au>
> Cc: "W. Enserink" <enserink@pdd.nl>; "PHP List"
> <php-general@lists.php.net>
> Sent: Thursday, March 13, 2003 1:04 AM
> Subject: Re: [PHP] Threading objects
>
>
> > > All I'm really asking is how do you initiate threading with PHP?
> > > A small example would be nice
> >
> > You don't. This is a web scripting language, not Java.
> >
> > -Rasmus
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>