For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > September 2007 > Re: [PEAR] ....trying to use XML_Tree......









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] ....trying to use XML_Tree......
Simon Ruderich

2007-09-14, 7:03 pm

On Thu, Sep 13, 2007 at 05:12:05PM -0300, francisco viola wrote:
> Hi!
> I'm trying to use XML_Tree (require_once 'XML/Tree.php';) , but I got an error:
>
> Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in /usr/local/lib/php/XML/Tree.php on line 297


I just installed XML_Tree and tested it (require) and it worked, haven't
tested using it though.

Maybe you can reinstall/update it. If this doesn't work download the newest
version and try it again [1].

> My system version is:
> pear5 help version
> PEAR Version: 1.4.6


You should update to the newest PEAR version. This shouldn't have anything to
do with your problem, but who knows. The current version is 1.6.2.

> PHP Version: 5.1.2
> Zend Engine Version: 2.1.0
> Running on: Linux
> ...
> Could someone give me a help? (it seems a compatibility error, isn't it? What could be done?)
>
> thanks
> francisco


By the way, I just noticed you use PHP 5. Then maybe you should use PHP's own
XML handling; like suggested by the XML_Tree page [1].

Simon

[1]: http://pear.php.net/package/XML_Tree
--
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com