[thelist] Splitting Articles across multiple pages with PHP

Norman Beresford n.beresford at anansi.co.uk
Thu Jan 31 04:31:00 CST 2002


Hi Mark

The problem with doing it the way you want to is that it's going to look
quite strange with sentences stopping midway though etc etc.  Rather then
just defaulting to 200 words per page, rather go to the 150ish word mark,
and scan forward until the next double line break, then split the document
there.

Alternatively split the documents into paragraphs in your document store.
That would require changing your existing system, but in the long term you
would benefit from it (ie a table with documentID, documentText,
documentWordCount, articleID and a table with articleID, documentID,
articleOrder).

Not the answer you were looking for, but hopefully the first bit will be
helpfull.

Norman




More information about the thelist mailing list