note 37842 added to wrappers
| From: | lupti at yahoo dot com | Date: | Sat, 29 Nov 2003 07:04:02 +0000 |
| Subject: | note 37842 added to wrappers | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61106@lists.php.net to get a copy of this message | ||
I find using file_get_contents with php://input is very handy and efficient. Here is the code:
$request = "";
$request = file_get_contents("php://input");
I don't need to declare the URL filr string as "r". It automatically handles open the
file with read.
I can then use this $request string to your XMLparser as data.
----
Manual Page -- http://www.php.net/manual/en/wrappers.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37842
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37842&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37842&report=yes
Search -- http://master.php.net/manage/user-notes.php