You are here: Re: PHP4 XML DOM « PHP Programming Language « IT news, forums, messages
Re: PHP4 XML DOM

Posted by p.lepin on 08/18/06 06:51

Shuan wrote:
> >$doc = domxml_open_mem ( $xml ) ;
>
> The function you provided works perfectly for local file,
> but not the remote one. Do i have to use the different
> function remote file?

Actually, domxml_open_mem() parses XML from a string. For
both local and remote files you should use
domxml_open_file() - well, depending on your definition of
'remote' and your ISP's PHP settings ('allow_url_fopen').
The following should work:

$doc = domxml_open_file
( 'http://example.org/dir/data.xml' ) ;

--
Pavel Lepin

 

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

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