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

Posted by Nicos on 08/11/06 12:15

IchBin 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.
> >
>
> You have to look at the XML parsing classes to parse the file to extract
> the values..
>
> Thanks in Advance...
> IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
> __________________________________________________________________________
>
> 'If there is one, Knowledge is the "Fountain of Youth"'
> -William E. Taylor, Regular Guy (1952-)

Can't i just copy an xml file from another server to mine instead of
parsing the file?

 

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

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