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/06/05 23:37

Thanks for the reply

As best as I can tell it's not a page that I'm reading, just the dataset
it starts with <DataSet ........

From what I read the domxml needs to be installed, I can't do this as
I don't have control over the server, I need a solution that does not
anything else installed and will run from standard PHP install from a
server provider.


Brian


"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1118083345.156353.41950@f14g2000cwb.googlegroups.com...
> In PHP, you can retrieve a remote page with file_get_contents():
>
> http://www.php.net/file_get_contents
>
> Note that retrieving a file from a URL using this function requires
> allow_url_fopen to be enabled in php.ini:
>
> http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
>
> Once you've gotten your XML response into a string variable, there are
> many ways you can parse it. I like to use the DOM XML functions:
>
> http://www.php.net/manual/en/ref.domxml.php
>
> Your best bet is to probably have the form submit to your site, grab
> the form variables, then create a URL to pass to file_get_contents().
> Put the return value of file_get_contents() into a variable, then pass
> that to the DOM functions (or any other XML-parsing techniques you
> decide to use).
>

 

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

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