Warning: fopen("php://stdin","r") - Invalid argument in ...
| From: | Olivier Bourrass� | Date: | Mon, 09 Apr 2001 14:15:54 +0000 |
| Subject: | Warning: fopen("php://stdin","r") - Invalid argument in ... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51197@lists.php.net to get a copy of this message | ||
Hi,
I keep getting this message, I'm trying to retreive infos sent using POST.
Is that the right way to do it? The stram comes from an application so I
can't use HTTP_POST_VARS.
Is there any special configuration since I took this code from the WEB and
it's supposed to work fine.
$fp = fopen("php://stdin","r");
if ($fp){
while (!feof($fp))
$BUFFER = fgetc($fp);
$INPUT .= $BUFFER;
if ($BUFFER == "\n")
break;
}
}
I'm running PHP4.04Pl1, apache 1.3.14 on NT4
Thanks
Olivier