Subversations.com- deadline approaching!

Posted by Brian Fending on June 14th, 2006 — Posted in Music, Technology

Well, I finished the site for uploading stories and it’s in full effect at www.subversations.com. Since a lot has to be done with the stories, we had to determine a deadline: July 1, 2006. So please contact me to schedule a time (so I can record you!) or DIY and upload at the site. It’s really that simple!

Did I mention the free coffee? Oh, yeah - in the last post…

Calculate age based on today’s date

Posted by Brian Fending on June 13th, 2006 — Posted in Code

This neat little PHP function returns a person’s age based on today’s date and the variables you pass in. In the below usage, it’s hardcoded; you can easy change it to “get_age($birthdate,$birthmonth,$birthyear)” to handle a form submission. In the usage example below, the result as of the date of writing (13 Jun 2006) is 31, rolling over to 32 the next day.

function get_age($birth_day,$birth_month,$birth_year)
{
$d_stamp = date("d.m.Y",mktime());
list($cur_day,$cur_month,$cur_year) =
explode(".",$d_stamp);
$year_diff = $cur_year-$birth_year;
if(($birth_month > $cur_month) ||
($birth_month == $cur_month && $cur_day