Forum Moderators: coopster
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
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.