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
[Back to original message]
|