Hello there,
Is it possible to create a http response for requests associated with a different PHP session? If so, how to do that?
I'm creating a script language to make it easier for PHP developers to handle phone interactions. My application receives phone calls and then activates the user scripts associated with those calls.
Scripts are processed in real time. Since I don't know the number of commands in the scripts, I have to create and send individual REST responses for each command until somebody issues a hangup.
Is there any way to do that without having to stop the current function, send the response, and then resume the script the next time the phone server sends me a request?
Ideally, I would love to remain in the current PHP function sending responses for each http request without having to stop at each time... would curl -- or anything else -- help me with that?
Thanks in advance,
Leo