Passing a resource-handle to another script
Posted: Sun Dec 19, 2004 2:39 am
Hi All,
I'm writing a small server consiting of two cli-scripts: The first one handles incoming connections, accepts them, and then passes the accepted connection to the second script, that then handles the rest.
This look something like this:
Script 1:
[...]
$ch = socket_accept($listen);
$ch should now be passed to the second script, but I couldn't pass it as command-line argument nor on STDIN..
I'm more or less desparately looking for help!
Thanks a lot and best regards,
smilodon
I'm writing a small server consiting of two cli-scripts: The first one handles incoming connections, accepts them, and then passes the accepted connection to the second script, that then handles the rest.
This look something like this:
Script 1:
[...]
$ch = socket_accept($listen);
$ch should now be passed to the second script, but I couldn't pass it as command-line argument nor on STDIN..
I'm more or less desparately looking for help!
Thanks a lot and best regards,
smilodon