View Single Post
Old 05-04-2011, 01:20 PM   #2 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

you can use the curl library:
php Code:
//in domain2/form.php

//Initialize the Curl session
$ch = curl_init();

//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//Set the URL
curl_setopt($ch, CURLOPT_URL, "http://domain/parse.php");

//Execute the fetch
$data = curl_exec($ch);

//Close the connection
curl_close($ch);

//then you can handle the XML
$xml = new SimpleXMLElement($data);
tony is offline  
Reply With Quote