Reply to Tidy class not found/rpm issue

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация