Page 1 of 1

how to get xml from another location?

Posted: Tue Dec 19, 2006 3:02 am
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?

Posted: Tue Dec 19, 2006 3:08 am
by onion2k
file_get_contents(), fopen(), fsockopen() ... all possibilities. It depends what's available.

Posted: Tue Dec 19, 2006 3:12 am
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.

Posted: Tue Dec 19, 2006 5:46 am
by onion2k
file_get_contents(), fopen(), fsockopen() will all work for that. Take your pick.

Posted: Tue Dec 19, 2006 11:55 am
by saumya
thanks onion2k for your help.let me try.

Posted: Tue Dec 19, 2006 12:07 pm
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.