php4支持xslt

首先需要下载如下软件包:

sourceforge.net/projects/expat/

从这里下载最新的 expat

我下载的是:expat-2.0.0.tar.gz

www.gingerall.com/charlie/ga/xml/d_sab.xml

从这里下载sablot

我下载的是:Sablot-1.0.2.tar.gz

xmlsoft.org/

从这里下载 libxslt

我下载的是:libxslt-1.1.9.tar.gz

三个包分别解压缩

先来libxslt

./configure –prefix=/usr/local/libxslt –with-libxml-prefix=/usr/local/libxml2 && make && make install

再来expat

./configure && make && make install

继续sablot

./configure && make && make install

最后重新编译php

./configure –prefix=/usr/local/php/ –enable-force-cgi-redirect –enable-mbstring=all –enable-mbregex –enable-mbstr-enc-trans –enable-versioning –enable-trans-sid –enable-ftp –with-mysql=/usr/local/mysql/ –with-apxs2=/usr/local/apache2/bin/apxs –with-openssl=/usr/local/openssl –with-soap=yes –with-curl=/usr/local/curl/ –with-zlib-dir=/usr/local/zlib/ –with-mcrypt=/usr/local/libmcrypt/ –with-gd=/usr/local/gd2 –with-jpeg-dir=/usr –with-freetype-dir=/usr/local/freetype –with-ttf –with-png-dir=/usr –with-mhash=/usr/local/mhash/ –with-dom=/usr/local/libxml2 –with-iconv=/usr/local/libiconv –enable-xslt –with-xslt-sablot –with-xsl=/usr/local/libxslt

make && make insteall

重新安装zend吧。

over this~~~

发表评论

电子邮件地址不会被公开。 必填项已用*标注