[NTLUG:Discuss] OT: splitting large html files?
Jack Snodgrass
jack at jacksnodgrass.com
Sat Nov 8 07:12:56 CST 2003
On Sat, 2003-11-08 at 01:42, Lance Simmons wrote:
> I need to split some large html files into smaller chunks. I haven't
> figured out how to do that directly.
>
> One way to do it indirectly is to convert the html file to latex using
> gnuhtml2latex, and then use latex2html to produce properly chunked html
> files. That works OK.
>
> Still, is there a more direct way to do it?
What are you trying to do by splitting the HTML files into 'chunks'? If
you have
100K bytes of html data in your index.html page and you split it into 4
25K
chunks, the users will still have to download 100K ( 4 x 25K ) of data.
As far as delivering the chunks, say that you did have a 100K index.html
that
you wanted to deliver. You could create ( somehow ) your 4, 25K chunck
files
and called them index_1.html, index_2.html, etc. then have an index.php
file that contained:
<?
include "index_1.html";
include "index_2.html";
include "index_3.html";
include "index_4.html";
?>
you could also split your .html page into a frame ( if it's not already
)
each part of the frame could load a different chunk.
jack
More information about the Discuss
mailing list