You are here: Re: Responding To HTTP Post « PHP Programming Language « IT news, forums, messages
Re: Responding To HTTP Post

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация