* Thus wrote PHPDiscuss - PHP Newsgroups and mailing lists:
> I noticed php://input but that's going to be changed to php://filter, but
> i have never tried using that before either. So i have no idea how it
> works. 

The only time php://input will have the data sent from the client
is if php doesn't read in any of the data.  You can force php not
to read that by setting the php.ini post_max_size to a small
number.

Then you can simply do something like:

($fp = fopen('php://input', 'r')) or die('cant open input');

while (! feof($fp) ) {
  echo fgets($fp);
}

Although a slight hack, it is much more effecient with memory,
expecially if you are expecting lots of data.

Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to