Re: XML with PHP 3
| From: | Jeff Warrington | Date: | Fri, 04 Aug 2000 20:58:45 +0000 |
| Subject: | Re: XML with PHP 3 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10186@lists.php.net to get a copy of this message | ||
In article <00b801bffdfe$6ec9c260$5800a8c0@OHYEAH>, geekabyte@yahoo.com
("Ken M. Mevand") wrote:
If you are using apache on the server (version > 1.3.7 I believe),
then you can compile PHP3 to enable XML via the bundled
expat XML parser in these versions of apache.
add --with-xml to your configure command for PHP.
Jeff
Note that if you are using Apache-1.3.7 or later, you already have the required
expat library. Simply configure PHP using
--with-xml (without any additional path) and it will automatically use the expat
library built into Apache.
On UNIX, run configure with the --with-xml option. The expat library should be
installed somewhere your compiler
can find it. If you compile PHP as a module for Apache 1.3.9 or later, PHP will
automatically use the bundled expat library
from Apache. You may need to set CPPFLAGS and LDFLAGS in your environment before
running configure if you have
installed expat somewhere exotic.
Build PHP. Tada! That should be it.
> hi,
> my server is running PHP 3.0.9. i would like to try using XML,
> however,
> my hosting company cannot upgrade to PHP4 as they claim that there are
> incompatibility problems with PHP3 and PHP4 scripts.
>
> so, is there a way to use XML. also, would it be possible to write
> it
> such that it is easily ported to PHP4 when available?
>
> thank!
>
> -ken
>
>
>