You are here: Re: how to use php://input? « PHP Programming Language « IT news, forums, messages
Re: how to use php://input?

Posted by R. Rajesh Jeba Anbiah on 12/18/14 11:49

Sjoerd wrote:
> yawnmoth wrote:
> > I tried using php://input in the following script but nothing is output
> > when I run it:
>
> "$GLOBALS["HTTP_RAW_POST_DATA"] contains the raw POSTed data from a
> request. Also available (obviously) as $HTTP_RAW_POST_DATA in the
> global scope. Thanks to Manuel Lemos' SOAP server class for shedding
> some light on the subject." -- m dot crawford at nospam dot home dot
> com
>
> "It should be noted that $HTTP_RAW_POST_DATA only exists if the
> encoding type of the data is -not- the default of
> application/x-www.form-urlencoded, and so, to accessing raw post data
> from an HTTP form requires setting enctype= in your HTML." -- mike at
> dbeat dot com

http://in.php.net/wrappers.php
php://input allows you to read raw POST data. It is a less memory
intensive alternative to $HTTP_RAW_POST_DATA and does not need any
special php.ini directives. php://input is not available with
enctype="multipart/form-data".

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

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

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