Page 1 of 1

catching xml response

Posted: Wed Sep 10, 2008 2:29 am
by TheHughMan
i'm very new to using xml, especially with php, so please bare with me.
i need to submit some xml code to a server which i have no control over.
the method for submitting it is through a query string, for example:
http://www.whatever.com/whatever.js?command=<xml code goes here>

when i do this, it sends an xml packet in response.
how would i tell my script to 'redirect' to the above url, but then to catch the xml returned so that i can carry on processing the returned xml packet within the same script?

Re: catching xml response

Posted: Wed Sep 10, 2008 3:14 am
by jaoudestudios
Use php function file

i.e

Code: Select all

 
$results = file("QUERY_STRING");