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" <[EMAIL PROTECTED]> > To: "Kris" <[EMAIL PROTECTED]> > Cc: "W. Enserink" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> > 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 > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php