Yeah, it's not too bad if you store your HTML content as array elements. You know an array is a container: much like a big shipping box with a bunch of little boxes inside it, each one numbered, the numbering starting at 0.
PHP Code:
$myarray[0] = "woohoo";
$myarray[1] = "something else";
$myarray[2] = "this would be another individual post, see?";
If you don't mind having one file for each post you make then do this:
- Create a subdirectory, call it "/posts" (or whatever you want).
- Use PHP to read all files in that directory. You can do this by date or by file name, if you named your files things like 1.html, 2.html... if you want the most recent on top, you'll need to sort descending - easy to do. Either way, there are options here.
- Read the contents of each file and put the contents into an array.
See, as you read from a database, all the results are stored in an array anyway (generally speaking). So this now can work just like a database query:
- Run a loop on the array (a for loop might be best), depending on what page you're currently on, how many per page, etc.
That should be pretty flexible.
Once your code is done, all you have to do is make a .html file in the /posts directory and make its name (a number) 1 more than your post before. See?