I'm having trouble using Tidy and PHP 4. As much as I'd want to migrate to 5, I can't till I finish this script.
I'd very much like to use the Tidy API in php to help me debug the html, but I don't seem to be able to find any functions that enable that. PHP 5 has a well documented API, but there doesn't seem to be any for PHP 4.
Does someone have the memory to tell me what the functions might be?
If someone has time besides the memory, could he tell me how to write this code?
PHP Code:
function printout()
{
/*
* My script uses an internal output buffer,
* this is the function that prints the output
* (ie. the end of the script looks like
* $output->printout(); ?>
*/
$output = &$this->spooled_output;
echo $output; /*need to parse this with Tidy or we get mess*/
return true;
}
Thank you for your input.
Gasper