HTML tidy on Win32/Apache not working

Discussion in 'HTML & Website Design' started by jsand, Aug 8, 2005.

  1. #1
    Hi,

    I'm working on a research project that requires me to manipulate HTML and display it with some modifications. I really would like to use the PHP tidy extension to help clean up any bad HTML I get. However, I can't seem to get it to work. I'm running Apache 1.3 and PHP 5 on Windows XP Professional. A snippet of my php.ini is below and php_tidy.dll is in the ext directory. I've also downloaded the tidy.dll file from sourceforge and placed that in the Windows\system32 directory (and the Windows\system directory as well) named as tidy.dll AND libtidy.dll, but I still can't use the tidy functions. Eventually this application will run on a Linux machine and I will get PHP installed with the extensions, which will probably work more reliably.

    "Fatal error: Class 'tidy' not found in d:\apache group\..." is what I get. The line that causes that error is: "$tidy = new tidy();"

    Is there something I missed? Any suggestions would help.

    Thanks,
    James

    
    ;extension=php_msql.dll
    extension=php_mysql.dll
    ;extension=php_oci8.dll
    ;extension=php_openssl.dll
    ;extension=php_oracle.dll
    ;extension=php_pdf.dll
    ;extension=php_pgsql.dll
    ;extension=php_shmop.dll
    ;extension=php_snmp.dll
    extension=php_sockets.dll
    ;extension=php_sybase_ct.dll
    extension=php_tidy.dll
    ;extension=php_w32api.dll
    ;extension=php_xmlrpc.dll
    ;extension=php_xsl.dll
    ;extension=php_yaz.dll
    ;extension=php_zip.dll
    
    Code (markup):
     
    jsand, Aug 8, 2005 IP