So, I have perform two steps
a) Create a some random xml file in one of the php file. b) Parse the same xml file in second file.
Key points are that php file i
If you want to send POST data from PHP, you could use cURL. You can't set $_POST
or $_REQUEST
at the sending side and expect them to be set at the receiving end as well.
Have a look at this question: Send XML over HTTPS/POST via cURL?
I'm not really sure I understand what you are trying to do but try looking in to reading raw post data. Here is a blog post that talks about it a little bit.
http://www.codediesel.com/php/reading-raw-post-data-in-php/