Hi,

I've picked up work on a site done by somebody else and the code is in a bit of a mess. I want to run it through html tidy to get it tidied up, get some structure to it before I start ripping the pages apart and re-organising it along the lines I usually work. There are a lot of pages and I want to automate the process using html tidy.

I tried using

exec('tidy.exe -config config.txt index.html', $errors, $result);

using info gleaned from http://www.w3.org/People/Raggett/tidy/

but nothing happens.

Am I missing something?

Thanks

Paul

    There is an extension module for Tidy.
    It is not installed by default.
    You need to enable this extension.
    php_tidy.dll comes with PHP Win32 package.

    I have Tidy extension enabled at my php work server

    tidy
    Tidy support enabled
    libTidy Release 22 March 2008
    Extension Version 2.0 ($Id: tidy.c,v 1.66.2.8.2.24.2.14 2009/01/06 23:45:16 iliaa Exp $)

    Here is the PHP manual for Tidy Class: [man]tidy[/man]
    PHP Tidy homepage, with source download: http://pecl.php.net/package/tidy
    Article: Tidying up your HTML with PHP 5
    http://devzone.zend.com/article/761

      Write a Reply...