Jump to content

simplexml_load_file()


N-Bomb(Nerd)

Recommended Posts

Hello, I'm trying to use simplexml_load_file() in my php5 file and I'm getting the following errors:

 

Warning: simplexml_load_file() [function.simplexml-load-file]: URL file-access is disabled in the server configuration in /****/htdocs/index.php5 on line 16

Warning: simplexml_load_file(http://*****.net/*****.xml) [function.simplexml-load-file]: failed to open stream: no suitable wrapper could be found in /****/htdocs/index.php5 on line 16

Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://*****.net/*****.xml" in /****/htdocs/index.php5 on line 16

 

I tried looking for a solution myself and someone said that I should turn "allow_url_fopen" on in my .htaccess or php.ini, but wouldn't that cause some kind of security risk?

 

What would be the best way to get simplexml to work for me?

Link to comment
https://forums.phpfreaks.com/topic/157987-simplexml_load_file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.