-   Programming (
-   -   HTML Tidy and PHP 4 (

atom 10-01-2004 11:06 AM

HTML Tidy and PHP 4
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;
$output/*need to parse this with Tidy or we get mess*/
return true;

Thank you for your input.


All times are GMT -5. The time now is 06:13 PM.