Posted by R. Rajesh Jeba Anbiah on 10/15/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]
|