[eluser]LuckyFella73[/eluser]
Please insert this function into one of
your controllers and call the method get_xml.
Then heck the sourcecode in your browser.
You should see an xml string. If not its defenitly a
server issue (configuration/permission).
Code:
public function get_xml()
{
$address = "http://maps.google.com/maps/geo?q=Gent,Belgien&output=xml";
$address = utf8_encode($address);
$ch = curl_init(); //Initialize the Curl session
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_URL, $address); //Set the URL
$xml_data = curl_exec($ch); //Execute the fetch
curl_close($ch); //Close the connection
die($xml_data);
}