Posted by BG Mahesh on 10/16/06 02:54
hi
I have installed Tidy on Fedore Core 4.0 using RPM. I have a very
simple script that uses tidy,
------------tidy.php------------------
<html>a html document</html>
<?
$html = ob_get_clean();
// Specify configuration
/*$config = array(
'indent' => true,
'output-xhtml' => true,
'wrap' => 200);
*/
// Tidy
$tidy = new tidy;
$tidy->parseString($html);
$tidy->cleanRepair();
// Output
echo $tidy;
?>
------------end tidy.php--------------------------
- tidy.so is in /usr/lib/php/modules
- extension=tidy.so is in in /etc/php.ini
- php -m and info.php shows tidy is installed but tidy.php gives error
PHP Fatal error: Class 'tidy' not found in tidy.php on line 11
What could I be doing wrong? I am using PHP 5.x.
regards,
Mahesh
[Back to original message]
|