Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-01-2004, 11:06 AM   #1
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
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.


Last edited by atom; 10-01-2004 at 11:08 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Tidy Up With HTML Tidy jeremy LinuxAnswers Discussion 0 10-10-2005 08:25 PM
html into php charnel Programming 7 08-30-2005 11:47 AM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 07:36 AM
php/html editor dai Linux - Software 10 03-10-2003 05:34 PM
frames in html and php ranixlb Programming 3 12-04-2002 01:58 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration