Re: Fork and multi-thread in PHP?
| From: | Rasmus Lerdorf | Date: | Wed, 12 Jun 2002 15:14:44 +0000 |
| Subject: | Re: Fork and multi-thread in PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101750@lists.php.net to get a copy of this message | ||
That's one of the main reasons you would want to use the mail() function.
I wouldn't advise a fork() here, but if you really insist, see the pcntl
extension - http://php.net/pcntl
-Rasmus
On Wed, 12 Jun 2002, Nathan Cassano wrote:
>
> Hi PHP folks,
> I have a program that sends out email by making socket
> connection to our email server. The problem is that the program is very
> slow because it has to finish talking to the email server until it can
> proceed with the next email (as opposed to the mail() function that just
> forks off a sendmail process). Is there a way for PHP to fork or
> multi-thread to do I/O?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>