Archive for March, 2008

Mailing List Registration in CodeIgniter : Part 1

Greetings! 
As you are probably already familiar with, website owners have some responsibilities with regards to sending out news updates. You cannot just send out email news to anyone or else they will be tagged as Spam (and you don’t want that to happen). That’s why you have to make your website enticing enough that your [...]

Using MySQL Triggers to Audit Field Changes from a Database Table

By: Arpee Ong 
A MySQL trigger is an object that is associated to a table. It is a set of tasks that is ran/activated when a particular operation is imposed on a table. A couple of operations that can invoke a MySQL trigger is an Insert and Update.
This article will discuss how this feature can be [...]

Colorful phpinfo();

Just for fun and if you have nothing to do, run this custom phpinfo(); to get a view of the old and dull phpinfo with cool colors.
<?php
ob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();
preg_match_all(‘/#[0-9a-fA-F]{6}/’, $phpinfo, $rawmatches);
for ($i = 0; $i < count($rawmatches[0]); $i++)
$matches[] = $rawmatches[0][$i];
$matches = array_unique($matches);
$hexvalue = ‘0123456789abcdef’;
$j = 0;
foreach ($matches as $match)
{
$r = ‘#’;
$searches[$j] = $match;
for ($i = [...]