Re: using 'while' without stopping the script from processing, Please help!
| From: | Pablo M. Rivas | Date: | Sat, 04 Sep 2004 14:22:57 +0000 |
| Subject: | Re: using 'while' without stopping the script from processing, Please help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195846@lists.php.net to get a copy of this message | ||
On Fri, 3 Sep 2004 21:48:56 +0100, Mark Clarkstone <mpmc17@gmail.com> wrote:
> Hi, I'm making an MSN bot in PHP & the only way to receive data is to
> loop over each socket, the only problem is that while its looping its
> stopping the rest of the script from being run at the same time.
> Is there anyway I can Process each socket without stopping the script,
Mark: for unix/linux: http://www.php.net/manual/en/ref.pcntl.php
and in this page you'll find examples, and a "tip" for PHP-CLI onWin32
--
Pablo M. Rivas. http://pmrivas.ipupdater.com
-----------------------------------------------------------