Hostgator Coupon September October 2009

Are you looking for an Hostgator Coupon code? If so, act right now as I don’t know how long this offer will be available. Enter ‘autumn’ without quotes in the Coupon Code field to get 20% off your hosting plan. As of today (september 2009, but should be okay for october as well) it works,…………….

Read Hostgator Coupon September October 2009 »

Remove item from array remove null values

Say we want to drop a value from an array, this is simple: just unset it!

unset($myarray[13]);

Sometimes however we may want to perform some more complex clean ups. Such as if we have just exploded an URL for url rewriting, and want to get rid of the null array items placed where the slashes were.
First approach…………….

Read Remove item from array remove null values »

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 »