I can't load a XML file with SimpleXML. I am always trying the function simplexml_load_file, but it doesn't work. Here is my PHP-Code:
$filezilla = 'G:/xampp/FileZillaFTP/FileZilla Server.xml';
$xml = simplexml_load_file($filezilla) or die ("Failure");
Output: Failure
I also looked in the php.ini and allow_url_fopen is activated. Bizzarely, this code works:
$xml = simplexml_load_file('http://api.wefeelfine.org:8080/ShowFeelings?display=xml&feeling=happy&returnfields=imageid,feeling,sentence,posttime,postdate,posturl,gender,country,state,city,lat,lon&limit=0&extraimages=20');
print_r($xml);
Does anyone know what the problem is?