Welcome to WebmasterWorld Guest from

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Using XML data from another site

1:35 pm on Jun 4, 2009 (gmt 0)

Full Member

5+ Year Member

joined:Aug 17, 2007
votes: 0


I want to able to read an xml file from another site to generate a page from the data on another site, what is the best way to go about this using, javascript, html and php?

1:17 pm on June 8, 2009 (gmt 0)

Moderator This Forum from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
votes: 0

the best way: PHP, hands down. It's a one-liner:

$str = file_get_contents($url);

Before you do this, be sure that you're permitted to use their XML file like that. Does the other site intend for their data to be repubulished, or are you ... stealing?


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members