yacaph Posted February 4, 2009 Share Posted February 4, 2009 I can't seem to find any info on installing Tidy for PHP 5.2. Most of what I have read indicates that it should already be installed, but even though I've un-commented the "extension=php_tidy.dll" in my php.ini, and restarted IIS my test script doesn't work and Tidy is not displayed in phpinfo. I've searched my hard drive for php_tidy.dll but it doesn't seem to exist. Test script: <?php // prints e.g. 'Current PHP version: 4.1.1' echo 'Current PHP version: ' . phpversion()."<br>"; // prints e.g. '2.0' or nothing if the extension isn't enabled echo 'Current Tidy version: ' .phpversion('tidy'); ?> Any help will be greatly appreciated. Quote Link to comment Share on other sites More sharing options...
corbin Posted February 4, 2009 Share Posted February 4, 2009 Are you sure you're editting the right PHP.ini? Have you looked at phpinfo() to see which ini is loadeD? Quote Link to comment Share on other sites More sharing options...
yacaph Posted February 4, 2009 Author Share Posted February 4, 2009 Thanks for the suggestion: PHPInfo reports D:\PHP\PHP.INI. The following is from that file: [Tidy] ; The path to a default tidy configuration file to use when using tidy extension=php_tidy.dll ;tidy.default_config = /usr/local/lib/php/default.tcfg ; Should tidy clean and repair output automatically? ; WARNING: Do not use this option if you are generating non-html content ; such as dynamic images tidy.clean_output = Off Quote Link to comment Share on other sites More sharing options...
corbin Posted February 4, 2009 Share Posted February 4, 2009 Are there any errors? (Presumably in the IIS error log, although it's been years since I've used IIS, so I've no idea where that would be x..x) Quote Link to comment Share on other sites More sharing options...
yacaph Posted February 5, 2009 Author Share Posted February 5, 2009 IIS is not showing any errors in the Windows system and/or application events. Is there a PHP error/event log that might contain some more info? I don't find any kind of a log in my \PHP\ folder(s). Quote Link to comment Share on other sites More sharing options...
yacaph Posted February 6, 2009 Author Share Posted February 6, 2009 [sOLVED] php_tidy.dll was not installed. I checked another machine and found php_tidy.dll in the \php\ext\ folder and copied into my \php\ext\ folder, re-started IIS and Tidy works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.