find tidy

Problems with the Windows version of XAMPP, questions, comments, and anything related.

find tidy

Postby shrg18 » 20. December 2007 15:34

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
shrg18
 
Posts: 43
Joined: 16. August 2007 13:59
Location: windsor, on, canada
Operating System: windows 8

Postby Izzy » 20. December 2007 23:28

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
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby shrg18 » 21. December 2007 16:29

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.
shrg18
 
Posts: 43
Joined: 16. August 2007 13:59
Location: windsor, on, canada
Operating System: windows 8


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 116 guests