Re: Reading an xml file from a POST array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux