PHP里的Tidy模块配置

# Install libtidy (needed for tidy2.0 compile)
apt-get -y install libtidy-0.99-0  libtidy-dev

# Install GNU tools for compiling
apt-get -y install build-essential

cd php-5.2.6/ext/tidy/

/usr/local/webwerver/php/bin/phpize

# Configure & Compile the source
./configure --with-php-config=/usr/local/webserver/php/bin/php-config

make clean    <-- Without this the compile builds a bad module for some reason
make
make install

# Install module into php.ini
echo "extension=tidy.so" >> /usr/local/webserver/php/etc/php.ini;

参考:http://ubuntuforums.org/showpost.php?s=dc95edfb6cb71f156b9372979801038a&p=1262554&postcount=3

Tags: tidy

上一篇: swfupload+nginx+php超大文件上传   下一篇: IE6恢复默认设置(IE全套)

提交疑问

回顶部