NYCPHP Meetup

NYPHP.org

[nycphp-talk] fork (broadcast emailer: is this sane strategy)

George Schlossnagle george at omniti.com
Wed Aug 18 10:45:07 EDT 2004


On Aug 18, 2004, at 8:20 AM, ophir prusak wrote:

>  I've never had to use real forks in PHP thought I have in Perl.
>  Using the PHP exec command doesn't do "real" forking, it just creates 
> a new process in the background.

How do you think that new process is created?  PHP does:

if(fork() == 0) {
   execve(newProcessExecutable, argv, envp);
}

That's how you create a new process in UNIX systems programming.

George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 447 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040818/a6022fc2/attachment.bin>


More information about the talk mailing list