安装/配置
在线手册:中文 英文
PHP手册

安装

This extension is bundled with PHP 5 and greater, and is installed using the --with-tidy configure option.

PHP 4 users may use the (old) PECL extension here: » http://pecl.php.net/package/tidy.

Note:

Tidy 1.0 is for PHP 4, whereas newer versions of the Tidy extension are for PHP 5 and greater.


安装/配置
在线手册:中文 英文
PHP手册
PHP手册 - N: 安装

用户评论:

spaceman at skipthispart dot foo dot at (13-Apr-2008 06:02)

If you're having trouble installing the Tidy2 extension on Ubuntu Dapper for PHP 5, take a look at this thread in the support forums:

http://ubuntuforums.org/showthread.php?t=195636

In summary:
* there is an extra "make clean" step required between "configure" and "make"
* depending on your setup, you may need to install a couple of other packages before you can install tidy:
   build-essential, php5-dev and/or php5-cli, libtidy, libtidy-dev