You are here: Re: Reading an XML dataset, an idiots guide « All PHP « IT news, forums, messages
Re: Reading an XML dataset, an idiots guide

Posted by Brian on 06/07/05 05:54

I'm starting to understand this XML stuff.

I have found a script on the net which I have tested and works
fine.
I have now tried to open the demo file from a remote server
by changing
$xmlSource="movies.xml";
to
$xmlSource = file_get_contents('http://www.myotherserver.co.uk/movies.xml');

and get an error while reading the XML file, but if I change the file to a
txt file on
the same server it reads fine

Any ideas?


Brian





"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1118094145.582888.11810@g14g2000cwa.googlegroups.com...
> Not a page as in an HTML page, but an HTTP response, nonetheless. You
> can still use file_get_contents() to get the string.
>
> As for a parser, there are a couple for PHP -- some of which are
> included by default, others which need to be compiled in. Take a look
> at this one:
>
> http://www.php.net/xml
>

 

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

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