LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-01-2004, 10:06 AM   #1
atom
Member
 
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;
     echo 
$output/*need to parse this with Tidy or we get mess*/
     
return true;


Thank you for your input.


Gasper

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


Reply


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 07:25 PM
html into php charnel Programming 7 08-30-2005 10:47 AM
html to php? help me please!!!!! trscookie Programming 4 01-24-2005 06:36 AM
php/html editor dai Linux - Software 10 03-10-2003 04:34 PM
frames in html and php ranixlb Programming 3 12-04-2002 12:58 AM


All times are GMT -5. The time now is 06:04 AM.

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