|
Posted by Tim Hunt on 08/11/06 14:09
Tim Hunt wrote:
> Nicos wrote:
> > ZeldorBlat wrote:
> > > Nicos wrote:
> > > > Hello people,
> > > > i do this on my domain:
> > > > <?php
> > > > header("Content-type: text/xml");
> > > > header("Content-Type: ".$contentType."; charset=UTF-8");
> > > > readfile("http://www.contra.gr/rss/home?type=latest");
> > > > ?>
> > > >
> > > > and i get the XML data from other domain as text. How can i get it as
> > > > XML?
> > > >
> > > > Thanks,
> > > > Nicos
> > >
> > > XML is text -- in a specific format. I'm not entirely sure what you're
> > > asking.
> >
> > When i open this file in Internet Explorer or Firfox, it doesn't show
> > the xml file as usual. (with +'s and -'s) just a plain uncolored text.
>
> I get highlighted text with +'s and -'s in both FF and IE
>
> Tim
Duh. I was looking at www.contra.gr not your copy
Try using the same content-type as them, application/xml
Tim
Navigation:
[Reply to this message]
|