Sure...sorry for not providing that sooner.
The error's I'm getting are making it appear as if it simply does not exist. For example, I am using the following test script from DevShed's tutorial on PHP Tidy:
- Code: Select all
// example of 'tidy_repair_string()' function
ob_start();
?>
<html>
<head>
<title>This file will be parsed by Tidy</title>
</head>
<body>
<p>This is an erroneous line
<p>This is another erroneous line</i>
</body>
</html>
<?php
$fileContents=ob_get_clean();
$tidy=tidy_repair_string($fileContents);
echo $tidy;
The error I get is:
Fatal error: Call to undefined function tidy_repair_string()
I'm running this on a regular windows machine.
Here is what I have done:
1. I have downloaded php_tidy.dll and placed it in the main php directory (c:\xampp\php). I have also tried it in c:\xampp\apache\bin (per someone's suggestion)
2. In php.ini I have uncommented extension=php_tidy.dll. When I run php -m I see tidy in the list.
3. I have left ; tidy.default_config = /usr/local/lib/php/default.tcfg commented since this is being run on a windows machine.
Outside of that I am pretty lost. I'm not a system admin (which is why I have chosen to go with XAMPP) but would really like to get this to work on my local machine. Any help you can provide would be very much appreciated.