Re: xmltree() function - what PHP version?
| From: | kev | Date: | Tue, 16 Jan 2001 17:58:36 +0000 |
| Subject: | Re: xmltree() function - what PHP version? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34866@lists.php.net to get a copy of this message | ||
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 <ignacio@openservices.net>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
http://www.fa-premier.com - English Premier League Football