Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/07/2013, 03:18
pegasus6464
 
Fecha de Ingreso: diciembre-2007
Mensajes: 56
Antigüedad: 16 años, 5 meses
Puntos: 0
Cargar XML ubicado en servidor

Buenas tengo un json.php para cargar un xml local pero quiero ponerlo en un servidor http, tengo el siguiente codigo

<?php


//Check if the locations.xml file exists, if it does encode it to JSON for the app
if (file_exists('locations.xml')) {
$xml = simplexml_load_file('locations.xml');
$json = json_encode($xml);
print_r($json);
} else {
exit('Failed to open locations.xml.');
}
?>



ES posible ubicar el xml en

http://www.misitio.com/locations.xml...??????????????

No consigo hacerlo funcionar salvo en local