Sunday, August 21, 2005

PHP explode function - string function

PHP explode function is a powerful and very useful php string function especially if you want to parse querystrings.

explode -- Split a string by use of a string separator, returns the parsed strings to array.

// Example 1
$yellow = "sponge1
sponge2 sponge3 sponge4 sponge5 sponge6";
$pieces = explode(" ", $yellow);
echo
$pieces[0]; // piece1
echo $pieces[1]; // piece2

// Example 2
$data = "foo:*:1023:1000::/home/foo:/bin/sh";
list(
$user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
echo
$user; // foo
echo $pass; // *

?>

Friday, August 19, 2005

Acceptance/Affirmation

The truth is, PEOPLE DON'T CARE HOW MUCH YOU KNOW UNTIL THEY KNOW HOW MUCH YOU CARE. -John C. Maxwell

Wednesday, August 17, 2005

Dealing with colors

Monochromatic
A monochromatic color scheme is often considered for sites where content is of extreme importance, or when the opinions presented are of a moderate nature. It can give a site a clean and classic look, but also provides excellent opportunities to let full color photographs dominate. Monochromatic schemes are often appropriate for serious political and business sites such as those of some banks where instilling customer confidence in their experience. They are also highly suited to fashion sites where the understated monochromatic scheme supports the branding, but nevertheless allows the photographical elements to provide a focus.

source: http://www.glasshaus.com/samplechapters/1159/default.asp

Sunday, August 14, 2005

Creating Mambo 4.5.1a templates in Dreamweaver

A guide to creating Mambo 4.5.1a templates in Dreamweaver with the mambo template builder extension and Mambo Stand Alone Server [MSAS]

Mambo - is an open source content management system.

We will be making mambo templates using dreamweaver and the mambo dreamweaver extension.

What you will need to follow this tutorial:
  • Dreamweaver MX 2004: download trial version
  • Mambo Stand Alone Server [MSAS]4.5.1a: download freeMambo 4.5.1a
  • Dreamweaver Template builder extension: download free
  • Or-a free alternative if you do not have Dreamweaver - check out this template builder plugin for the free version of HTML Kit editor
  • Give me some time, perhaps 1 hour - maybe more, maybe less Perhaps a beverage (optional - I don't drink coffee ma'am).
  • Windows 2000 or XPActually

1. Install Dreamweaver template builder extension.
  • Open Dreamweaver. On the top menu, locate 'Commands' then 'manage Extensions'. This will open the extension manager.
  • In the extension manager, choose 'File' then 'Install Extension'. Browse to the location of the mambosolutions451a2.mxp and install it.
  • After installation, exit the Dreamweaver application.
  • Now restart Dreamweaver. You should see a new toolbar titled' MamboOS'
source: http://www.mambosolutions.com/dw_tutorial/