Re: Reading input stream of incoming request
| From: | Chris Shiflett | Date: | Thu, 06 Feb 2003 22:22:38 +0000 |
| Subject: | Re: Reading input stream of incoming request | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134683@lists.php.net to get a copy of this message | ||
--- "Reuben D. Budiardja" <reubendb@innovativethought.com>
wrote:
> I browse the archive and found the following code to
> simulate a POST request using socket connection. This
> will send a request to my own server (localhost). And
> then, I also have the second code (included) for
> /devel/php_post.php, which is the target for this
> request.
This sounds very screwed up, but maybe I am misinterpreting
you. This is what this sounds like to me:
1. You have a script (send.php) that autmates a POST to
another script (receive.php) that resides on the same host.
2. You then include this same script (receive.php) in your
sending script (send.php), thinking somehow that it has
access to the data you just posted.
Is that correct? If so, I think it represents a big
misunderstanding about how the Web works.
Since you say you have code to POST data from send.php to
receive.php, all you have to do is reference the data in
receive.php like this:
$_POST['varname']
If that made no sense, please try to explain clearly what
you are trying to accomplish.
Chris