On Sun, Nov 20, 2011 at 4:44 PM, Tommy Pham <tommyhp2@xxxxxxxxx> wrote: > On Sun, Nov 20, 2011 at 1:34 PM, Tim Streater <tim@xxxxxxxxxxxxxxxx> wrote: >> On 20 Nov 2011 at 10:36, Tommy Pham <tommyhp2@xxxxxxxxx> wrote: >> >> And here's another question. Can a child forked by pcntl_fork() use a socket that the parent obtained? Reading the socket stuff in the PHP doc, there are a number of user-supplied notes hinting this might be problematic. >> >> -- >> Cheers -- Tim >> > Forgot to address this in my previous e-mail because I was cooking while trying to read/reply my e-mails. Anyway, if I'm not mistaken, what you're trying to do is making a threaded application. PHP does not support threads currently. PHP and threads has been a heated discussion on this list in the past. You're welcome to search the archives. [1] HTH, Tommy [1] http://marc.info/?l=php-general -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php