Archive for the 'PHP' Category

PHP Tip of the Day: Array Indexing

Wednesday, September 5th, 2007

Ok, I’m not really going to do a PHP tip every day, but here’s something I learned the hard way. I normally don’t index an array like this, but for some reason one day I decided to try it and it came back to haunt me.

$myarray[03] != $myarray[3]
In fact,
$myarray[03] == $myarray[0]
Go figure.
(more…)

Writing an Exponent CMS Module

Thursday, January 12th, 2006

I recently wrote a plug-in module for Exponent CMS. I really like the CMS and is very capable to do what I would like. However, when I set out to write my own custom module, I found the documentation lacking. In this article, I’ll outline some tips to help you get started writing a module for Exponent CMS.
(more…)

Simple PHP Mailing List

Tuesday, April 26th, 2005

I was recently looking for a very simple PHP mailing list script. I essentially wanted the ability to notifiy friends and family when I’ve updated a website with new pictures. I, of course, wanted unsubscribe capability, email confirmation and other simple features. I spent WAY too much time downloading and trying out free scripts on the web. However, none of them accomplished the simple tasks that I wanted, if they even parsed correctly by PHP.
(more…)