how to get xml from another location?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

how to get xml from another location?

Post by saumya »

hi,
how can I get an XML from another server into my server.I mean I want to read an xml from another server in my server.how can I get it?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

file_get_contents(), fopen(), fsockopen() ... all possibilities. It depends what's available.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

actually I am trying to make my own RSS reader.So available is an XML file.how to get it open at my end.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

file_get_contents(), fopen(), fsockopen() will all work for that. Take your pick.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Post by saumya »

thanks onion2k for your help.let me try.
nhammond
Forum Newbie
Posts: 14
Joined: Mon Dec 18, 2006 11:35 am

Post by nhammond »

saumya wrote:actually I am trying to make my own RSS reader.So available is an XML file.how to get it open at my end.
Are you trying to display an rss feed on your site? an easy way to do this is to implement magpie http://magpierss.sourceforge.net/

Once it is is setup on your server all you do is send it the url to the feed and then tell it where to put it.
Post Reply