You are here: Re: XML instead of text « PHP Programming Language « IT news, forums, messages
Re: XML instead of text

Posted by Tim Hunt on 08/11/06 14:07

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация