Forum Moderators: coopster

Message Too Old, No Replies

flatfile database

         

kumarsena

7:48 am on Sep 20, 2004 (gmt 0)

10+ Year Member



i was thinking of of some accessibility issues and...

say i have a large pipece of text in a file only with some basic html formatting. now i would like to break the text into seperate pages. how would i go about this. i have a few ideas of my own like putting a seperator into the text (which i guess is the way to do it). but is there a way oif automateing this? been thinking of using something like htmlArea...just looking for some sugestions really..

thanks

mincklerstraat

8:48 am on Sep 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd steer away from HTMLArea since this is likely to bring extra tags into your code that you don't want, or won't validate.

I'd come up with some pagebreak symbol like <!--PAGEBREAK--> and use explode() to divide the page up into an array of subpages -

$pagearray = explode('<!--PAGEBREAK-->', $yourtxtfile);

then it's a matter of figuring how to save them and properly reference them (w/links) in your system.

kumarsena

1:21 pm on Sep 20, 2004 (gmt 0)

10+ Year Member



hmmm...sounds interesting....

thanks will try it out. didnt think about using explode....