Handeling POST without proper name/value
| From: | Mike Moulton | Date: | Fri, 08 Dec 2000 04:57:10 +0000 |
| Subject: | Handeling POST without proper name/value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-29280@lists.php.net to get a copy of this message | ||
I am trying to get Macromedia Flash 5 to talk to PHP using a method
predefined in flash's action script called XML.send. What it does is
take an XML object that you created and sends it to a script via a POST
method, however MM in all of there wisdom don't assign a name to the
value. What PHP does when it encounters this is try to parse it like a
normal name=value POST. So if flash sends an XML doc that looks like
this:
<TESTING value_1="This is a test" value_2="1" />
PHP thinks the name is : <TESTING_value_1
and the value is: "This is a test" value_2="1" />
Is there any way of manually assigning this value to a variable. I have
tried something like this without any luck:
$fd = fopen ("php://stdin", "r");
$val = fread ($fd, $HTTP_SERVER_VARS["CONTENT_LENGTH"]);
fclose ($fd);
I would greatly appreciate any help that can be offered. Thanks in
advance!
Setup:
PHP: 4.0.3pl1
Apache: 1.3.9
-- Mike Moulton
-- mike@meltmedia.com