I'm running PHP 5.2.5 with Apache 2.2.8 on my Windows XP laptop. I want to enable the php_tidy extensions so I can use the various tidy library functions. The php_tidy.dll extension was not in my PHP/ext directory by default, so I downloaded the dll for the nearest version (5.1.2) from
http://pecl4win.php.net/ext.php/php_tidy.dll, saved it in the ext directory, and I then added the following entry into my php.ini file:
[PHP_TIDY]
extension=php_tidy.dll
However, when I restart Apache and run phpinfo.php, I don't see any reference to the tidy library, and if I try to call the tidy_repair_string function, I get the following error:
[Wed Jul 02 23:04:46 2008] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function tidy_repair_string() in C:\\PHP\\ptsbscrape\\class
es.php on line 387, referer:
http://localhost/ptsbscrape/index.phpCan anyone tell me how to get the tidy library working? Have I downloaded the right version of php_tidy.dll?
Start Free Trial