|
Posted by Zack on 11/28/05 02:07
My question is not well stated. Let me try again.
I am working on a php script that will receive database requests from
remote URL's. The script's job is to execute the request and send the
results back to the requester.
The requester does the following:
1. Open a connection using fsockopen().
2. Post headers and request using fputs()
3. Read response using fgets()
This works fine. I am using a class that does that in other
applications communicating with applications that successfully send the
responses back. I am trying to write a script that also sends responses
back and that is where I am running into difficulties
The problem script obtains the request from $_POST. That also works.
The question is how do I send the response back to requester so that it
can read it using fgets(). Or, more specifically, how do I establish a
connection back to the requester so that I can send the response.
If I use fsockopen() to establish a connection to the requesting URL,
it appears that it would not be communicating with the same session. I
also don't see a way to get a handle to the existing connection that
was created by the requester.
Navigation:
[Reply to this message]
|