Re: Reading an xml file from a POST array

From: Date: Thu, 03 Apr 2008 07:20:34 +0000
Subject: Re: Reading an xml file from a POST array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-272473@lists.php.net to get a copy of this message
Good day Michael. I've done that as $xml_data = file_get_contents("php://input"); $xml_object = new SimpleXMLElement($xml_data); And it works. Best regards, Ilya Dyoshin Michael Horowitz пишет:
Simple XML has great tools to read xml from a string or a file. But I have it coming in as an http POST and none of them work. Its coming in as a straight file and not as a variable = value pairing like a form does. What is the best way to do this in PHP Thanks for any help


« previous php.general (#272473) next »