ellisgl
05-06-2008, 08:29 PM
I don't think it's possible, but thought I would ask.
I'm trying to create a simple IRC bot, which works but would like to expand it.
How I want to expand it is to use a exec() function to open a second php script. Well I need to be able to pass data from the 2nd script into my TCP stream.
The question is this; is it possible to take my resource for my socket_create and convert it to usable data and pass that on to my second script so it can access the same resource. This would allow for injecting data into the stream and also speed the response up quite a bit, since the main script would not have to wait for the response.
I'm trying to create a simple IRC bot, which works but would like to expand it.
How I want to expand it is to use a exec() function to open a second php script. Well I need to be able to pass data from the 2nd script into my TCP stream.
The question is this; is it possible to take my resource for my socket_create and convert it to usable data and pass that on to my second script so it can access the same resource. This would allow for injecting data into the stream and also speed the response up quite a bit, since the main script would not have to wait for the response.