Question about the xml *DOM* ...solved.

[email protected] ("Kim, Sung-Sik")
Newsgroups php.version4
Message-ID <[email protected]>
> i installed libxml2 at /usr/local/libxml2/ directory.
> (PHP4RC2 + redhat 6.1)
> 
> PHP configure
> 
> $>./configure --with-apxs=/usr/local/apache_1.3.12/bin/apxs
> --with-dom=/usr/local/libxml2/
> ..........
> 
> but the functions like XMLDOC() don`t work.
> 


because libxml2.0 is different from libxml1.0 in *directory structure*.
so, the following job is need.

1) vi php-4.0.0/configure

11091 line
test -f $withval/include/gnome-xml/tree.h ....
===> 
test -f $withval/include/libxml/tree.h ....

2) vi php-4.0.0/ext/domxml/php_domxml.h

38 line
#include <gnome-xml/parser.h>
==> 
#include <libxml/parser.h>


3) ./configure --with-dom=/usr/local/libxml2/ ....

.....


sorry poor english
Happy PHPing..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.