I have now compiled PHP with the --with-dom option, but unfortunately
something is wrong!
Here's my source (adapted from code in the manual):
<?
$fd = fopen("Competition8.xml","r");
$myXML = fread($fd,filesize("Competition8.xml"));
fclose($fd);
$docTree = xmltree($myXML);
print("<pre>");
print_r( $docTree );
print( "</pre>" );
?>
The only HTML output I get is this:
<pre></pre>
Any ideas?
TIA,
- Kev
Ignacio Vazquez-Abrams wrote:
> On 16 Jan 2001, Hrishi wrote:
>
> > > Fatal error: Call to undefined function: xmltree() in
> > > /usr/local/apache/htdocs/megsoc2/test/xml_parse/test1.php on line 5
> >
> > you prob. need to compile php again with '--with-xml'
> >
> > see 'configure --help' for more info.
> >
> > Hrishi
> >
>
> No, you need --with-dom.
>
> --
> Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
http://www.fa-premier.com - English Premier League Football
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]