A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearSimple_XML cross-domain file access disabled - page 1
User InfoPosts
Simple_XML cross-domain file access disabled#1
I need to retrieve an XML file from another domain I own from PHP.

I(m using simple_XML to do it but, apparently, cross-domain is disabled:

Warning: simplexml_load_file()
[function.simplexml-load-file]: URL
file-access is disabled in the server

I have no access to server(s config (shared hosting).

Any clue on how to perform this?

posted date: 2009-04-06 11:59:00

Re: Simple_XML cross-domain file access disabled#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-06 11:59:01

Re: Simple_XML cross-domain file access disabled#3
Your host disabled it by setting allow_url_fopen in php.ini to off.You may need to talk to them about having this enabled.You can try using cURL to download the remote file then loading the string into SimpleXML instead of a remote file path.

posted date: 2009-04-06 12:04:00

select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.