PHP Mini Sites Cms: template system and rewrite rules
Oct 10, 2009 Complete Scripts
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 »
Tags: flat file blog, flatfile cms, php tutorial, simple php cms
Simple Flat File CMS in PHP – Part 3
Sep 7, 2009 Complete Scripts
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 »
Tags: flat file blog, flatfile cms, php tutorial, seo urls, simple php cms
Flatfile PHP CMS tutorial – Part 2: the code
Sep 4, 2009 Complete Scripts
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 »
Tags: flat file blog, flatfile cms, php tutorial, seo urls, simple php cms
PHP Tutorial : Random link rotator
Dec 16, 2008 Useful PHP
Hi,
In this php tutorial you will learn how to build a random link rotator. Basically, we’ll build a php array with the links needed to rotate and then we’ll print to user the link randomly.
<?php
$links = array(“link 1″, “link 2″, “link 3″);
$max = sizeof($links);
$rand = rand(0, $max);
print $links[$rand];
?>
Read PHP Tutorial : Random link rotator »
Tags: link rotator, php link rotator, php random, php tutorial, random link
PHP Tutorial : Function – Filter unwanted words
Dec 8, 2008 Short PHP Functions
I needed to build a simple function which could be used to filter words that you wouldn’t want to appear on your website, forum, guestbook, comments section or you-name-it section.
In short, the kind of thing you would place within an html form, when validating an input or textarea element.
Everything can be done in a…………….
Read PHP Tutorial : Function – Filter unwanted words »
Tags: custom php function, filter unwanted words, php filter, php function, php tutorial

