pcntl_fork and classes
| From: | josh at warofthemagi dot net | Date: | Sun, 27 Jun 2004 20:31:59 +0000 |
| Subject: | pcntl_fork and classes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-189132@lists.php.net to get a copy of this message | ||
Is it possible to pcntl_fork() withing a class?
Basically I want a web page to load, and when the class is called in the
page, it can fork and the child can run, allowing the webpage to finish,
but the class process can continue 'till it's done.
Is this possible? Would I put the fork in the constructor? Would calling
the class methods after it forked work the same way?
-Josh