By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,715 Members | 1,256 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,715 IT Pros & Developers. It's quick & easy.

loading xml from another site (not the same domain)

P: 3
I would like to load xml from another site using fopen or simplexml_load_file but I'm running into issues relating to the file being on a different domain.

so, from xx.com I want to load an xml file from yy.com. xx.com and yy.com are different sites and hosted at different servers.

Any assistance would be greatly appreciated.

Ken
Mar 13 '10 #1

✓ answered by philipwayne

file_get_contents will work on external files. But you must have the php ini value allow_url_fopen set to on.

Share this Question
Share on Google+
3 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
Well, the first thing we need to do is see your code that you are working on. Can you please post it here, enclosed in code tags? Thanks!

Regards,

Jeff
Mar 13 '10 #2

P: 50
file_get_contents will work on external files. But you must have the php ini value allow_url_fopen set to on.
Mar 16 '10 #3

P: 3
@philipwayne
Perfect, I'll try that out tonight. Thanks!!
Mar 16 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.