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
saumya
Forum Contributor
Posts: 193 Joined: Sun Jan 30, 2005 10:21 pm
Post
by saumya » Tue Dec 19, 2006 3:02 am
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?
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Tue Dec 19, 2006 3:08 am
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 » Tue Dec 19, 2006 3:12 am
actually I am trying to make my own RSS reader.So available is an XML file.how to get it open at my end.
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Tue Dec 19, 2006 5:46 am
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 » Tue Dec 19, 2006 11:55 am
thanks onion2k for your help.let me try.
nhammond
Forum Newbie
Posts: 14 Joined: Mon Dec 18, 2006 11:35 am
Post
by nhammond » Tue Dec 19, 2006 12:07 pm
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.