Accept posted XML data

I remember that i’ve spent a lot of time finding something that allowed me to accept the posted XML data. The solution was very simple:

$data = file_get_contents('php://input');

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>