Reply to Re: how to use php://input?

Your name:

Reply:


Posted by Chung Leong on 12/13/10 11:49

yawnmoth wrote:
> I tried using php://input in the following script but nothing is output
> when I run it:
>
> <form action="test.php" method="post">
> <input type="text" value="demo" />
> <input type="submit" />
> </form>
> <?php
> $fp = fopen('php://input','r');
> while (!feof($fp))
> echo fgets($fp);
> fclose($fp);
> ?>
>
> Any ideas as to what's being done wrong?

I'm pretty sure that you can't get at the input data through
php://input once PHP processes it.

[Back to original 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

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