Advertisement

08.28.2008 at 01:33AM PDT, ID: 23684704 | Points: 500
[x]
Attachment Details

Count lines of HTML output

Asked by APRESTOUS in PHP Scripting Language, Hypertext Markup Language (HTML)

Tags:

Hello Experts,

My PHP script generate a HTML output which I need to print.
But i will tale more then 1 page, therefore I would like to prepare it for the print.

That means somehow split it into blocks of max X lines so each block will become a page.
What are the best methods to do it?

First problem I run in is simply count the number of lines in a piece of HTML
( it has tables, div's, breaks etc. )

Thank you for sharing your ideas.

Start Free Trial
[+][-]08.28.2008 at 03:41AM PDT, ID: 22333325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.28.2008 at 11:30AM PDT, ID: 22338147

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628