I want to read a XML file from a certain link with the following code
$filename = 'http://XXXXX/rss.xml';
$xml = simplexml_load_file($filename);
When I try, I get the following error messages:
wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found in
I/O warning : failed to load external entity
Whats the problem? Can it be that the server doesn´t support simplexml_load_file?
When
allow_url_fopenis set to0, you have no permissions to acces URL objects like files. Read official manual for more information.You can not change this value via .htaccess, so you have to set
allow_url_fopen=1in yourphp.inifile. If you’re using a shared hosting or some kind of it, you should contact hosting technical support and describe them your problem.