if (file_exists('http://something_from_a_url.xml')) { $xml = simplexml_import_dom('http://something_from_a_url.xml'); print_r($xml); } else { exit('Failed to open xml file.'); }
when I execute this code it says failed to open, I fail to understand why..