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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php