Re: php forking/spawning question...
| From: | Chris | Date: | Tue, 27 Jan 2009 23:14:37 +0000 |
| Subject: | Re: php forking/spawning question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287246@lists.php.net to get a copy of this message | ||
bruce wrote:
Hi... got the follwoing example... basically, when i call the function "spawn_" i get the passed vars for appname/args... the $appname,$args are valid when the spawn_ function is initially invoked. however, when the app does the fork, the $appname, $args get lost. when the function gets to the pcntl_exec, the vars ($appname, $args) are no longer set.Was that the whole script or was there extra stuff you took out? My only suggestion would be to add: echo "At line " . __LINE__ . " appname is '" . $appname . "'\n"; type messages every 10-20 lines and see where it disappears. Maybe you're overwriting the variables somewhere. -- Postgresql & php tutorials http://www.designmagick.com/