PHP Mini Sites Cms: template system and rewrite rules

In this fourth post we’ll have to actually do something useful with our code. Simply add the following at the end of the previous script.

if($found)
{// set up variables with content
$title=$items[0];
$url=$items[1];
$post=$items[2];
$tags=$items[3];
$description=$items[4];
$author=$items[5];
$date=$items[6];
}

else

{ // if we get here there was a 404 error either for malformed url or because we couldn’t…………….

Read PHP Mini Sites Cms: template system and rewrite rules »

Simple Flat File CMS in PHP – Part 3

In this third post, we’ll have to actually do something useful with our code. Simply add the following at the end of the previous script.

if($found)
{// set up variables with content
$title=$items[0];
$url=$items[1];
$post=$items[2];
$tags=$items[3];
$description=$items[4];
$author=$items[5];
$date=$items[6];
}

else

{ // if we get here there was a 404 error either for malformed url or because we couldn’t…………….

Read Simple Flat File CMS in PHP – Part 3 »

Flatfile PHP CMS tutorial – Part 2: the code

Time to define the structure for our flatfile CMS or Blog, and see the PHP code needed to parse it.

Read Flatfile PHP CMS tutorial – Part 2: the code »

Flat file PHP CMS or Blog, simple and customizable

Need a flatfile CMS or Blog, running low on resources, yet expandable and with support for custom themes and SEO urls? This tutorial series will show you how to quickly build it, with little effort.

Read Flat file PHP CMS or Blog, simple and customizable »