Page 1 of 1

find tidy

PostPosted: 20. December 2007 15:34
by shrg18
hi,

this is a warning from running at php shell:

Warning: tidy_html(): Unable to load Tidy configuration file at '/usr/local/lib/
php/default.tcfg'. in C:\xampp\php\LIB_parse.php on line 239

---------------------------

to activate tidy, I have commented out in php.ini
ln 669
ln 1242

at ln 1242, it defines:
tidy.default.config = /usr/local/lib/php/default.tcfg

I could not locate it.

please advise

thanks

PostPosted: 20. December 2007 23:28
by Izzy
From where I see it all you need to do to have the php5 inbuilt tidy library made available is to uncomment the one line:
extension=php_tidy.dll

To test that.
At a command console in xampp\apache\bin
type php -m
you should see tidy in the list.

Also http://localhost/xampp/phpinfo.php will confirm - look for tidy in the alphabetically ordered list.

If you uncomment the default.tcfg entry in the php.ini file, then your code will try and locate this file (which is pointing to a file on a *nix system) and obviously it is not available so keep that line commented - I believe that if you had a HTML Tidy installed separately then you may use this section to define it's configuration file.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================

PostPosted: 21. December 2007 16:29
by shrg18
Izzy wrote:From where I see it all you need to do to have the php5 inbuilt tidy library made available is to uncomment the one line:
extension=php_tidy.dll

To test that.
At a command console in xampp\apache\bin
type php -m
you should see tidy in the list.

Also http://localhost/xampp/phpinfo.php will confirm - look for tidy in the alphabetically ordered list.

If you uncomment the default.tcfg entry in the php.ini file, then your code will try and locate this file (which is pointing to a file on a *nix system) and obviously it is not available so keep that line commented - I believe that if you had a HTML Tidy installed separately then you may use this section to define it's configuration file.


I have commented it in again on line 1242
;tidy.default.config = /usr/local/lib/php/default.tcfg

it works.

I look at c:\xampp\php>php -m
tidy is in the list.

Thank you.