че-то я не догоняю...
1) добавил в пхп.ини extension=php_tidy.dll
и extension_dir = "c:\php\ext\"
2) добавил в переменные среды в Path c:\php\; и c:\php\ext;
Проверил на двух примерах:
1)
<?php
$html = '<HTML><HEAD></HEAD><BODY>Hello World</BODY></HTML>';
$tidy = new tidy;
$config = array(
'indent' => true,
'output-xhtml' => true,
'wrap' => 200);
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
$html = $tidy;
?>
Пишет Class 'tidy' not found
2)
<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$body = tidy_get_body($tidy);
echo $body->value;
?>
пишет call to undefined function tidy_parse_string()
У меня Виста, php5.
Подскажите пожалуйста в чем проблема...
|