/    Sign up×
Community /Pin to ProfileBookmark

huge amount of text on my site

I have to build a site which contains articles as large as 20-30,000 characters. Of course this means each article will appear on a number of pages, much like this forum breaks long threads in [1][2][3][4][5].
It’s the first site I build for money… whew!… what a way to start!

What I came up with is storing all the text in a mysql databse and since an article is not broken in equal parts but according to sub-chapters, make and insert an array where each array element is
automatically created by PHP (sparated by <h3>). So each page [x] starts with an <h3> and ends at the next <h3>.

But there’s more. Each huge article stored in MySQL has a title with it. So I should be able to retrieve these titles and automatically create my main navigation menu with them.

I should also be able to insert *all* the huge article in one page with a different CSS when someone clicks ‘printable view’.

This is a site that will be updated weekly and I think I will do that in PHPmyadmin.
I’ll figure out how to do all that, it should be pretty easy. But before I start, I thought I’d ask.

Is this the very best way to deal with large websites or should I be doing something different?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @amazing_andr3 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...