Cannot read XML file
Posted: Wed Jan 31, 2018 9:41 am
I have a php file called from html page. this file need to read a local xml file and return an array with data...
I tried many version of code but when i tried to open the file the page go in error without the possibility to check the error. The only command that work is $xml_string= file_get_contents('Stations.xml');
Any other like :
simplexml_load_string($xml_string);
simplexml_load_file("Stations.xml");
does not work...
The flag allow_open_url is ON...
Someone have an idea about what is happened...
Thanks in advance
I tried many version of code but when i tried to open the file the page go in error without the possibility to check the error. The only command that work is $xml_string= file_get_contents('Stations.xml');
Any other like :
simplexml_load_string($xml_string);
simplexml_load_file("Stations.xml");
does not work...
The flag allow_open_url is ON...
Someone have an idea about what is happened...
Thanks in advance