05-04-2011, 01:20 PM
|
#2 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
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);
|
|
|
|