Caching Results - Myspace Gigs Parser
In order to keep the number of requests to MySpace down and the speed of your site up I implemented a light caching layer. It's about a simple a configuration as there are only three settings. But for the novice there is no need to do anything, just don't touch anything and you'll get a one hour cache automatically.
Cache Configuration Variables
cache: bool
determines if caching is turned on or not
cacheDir: string
the directory in which you want your cache files saved, you need to work on your include paths and other things on your own. default is empty string (i.e. the current directory of the calling script)
cacheExpires: string
strtotime formatted string on how long a cache file should exist before purging and refreshing the data. default is +1 hours.
Advanced Tutorial
Here's a quick tutorial for advanced users if you want to increase/decrease the cache time and set your own cache path.
include('Myspace_Gigs_Parser.class.php');
//note no username in the constructor.
$gigs_parser = new Myspace_Gigs_Parser();
$gigs_parser->cacheDir = '/tmp/cache/myspace_gigs_parser';
$gigs_parser->cacheExpires = "+10 minutes";
$gigs_parser->parse('bobsaget');
var_dump($gigs_parser->gigs);
Upcoming Shows 
Sat, 14 Aug 2010 8:00PM
Las Vegas, NV
Wed, 31 Dec 1969 6:00PM
Orleans Hotel and Casino
Wed, 31 Dec 1969 6:00PM
8:00P
Wed, 31 Dec 1969 6:00PM
Oct 8 2010
Fri, 30 Jul 2010 6:00AM
Find Tickets
Sat, 9 Oct 2010 8:00PM
Atlantic City, NJ
Wed, 31 Dec 1969 6:00PM
Tilles Center for the Performing Arts
Wed, 31 Dec 1969 6:00PM
8:00P
Wed, 31 Dec 1969 6:00PM
Nov 4 2010
Fri, 30 Jul 2010 6:00AM
Find Tickets
Fri, 5 Nov 2010 8:00PM
Minneapolis, MN
Wed, 31 Dec 1969 6:00PM
Paramount Theatre
Wed, 31 Dec 1969 6:00PM
6:30P
Wed, 31 Dec 1969 6:00PM
Nov 27 2010
Fri, 30 Jul 2010 6:00AM
Find Tickets
Thu, 16 Dec 2010 8:00PM
Saskatchewan, CANADA
Wed, 31 Dec 1969 6:00PM
Esplanade Arts & Heritage Center
Wed, 31 Dec 1969 6:00PM
8:00P
Wed, 31 Dec 1969 6:00PM
Dec 19 2010
Fri, 30 Jul 2010 6:00AM
Find Tickets
Sat, 15 Jan 2011 7:30PM
Boston, MA
In the Press
A&E is putting Bob behind the reigns of a comedy documentary series which is about Bob joining a different culture/lifestyle every week. Casting calls have started for a "motorcycle club" traveling to the Daytona Beach Bike Week and the article drops episode ideas like traveling to Burning Man and living with a survivalist cult.
Candace Cameron-Bure and her husband, NHL'er Valeri Bure, have started a winery. They currently only offer two wines, a Nuit Blanche and a Majesy Blend, which you can purchase right off their website. I don't know anything about wines but I do know that Family Crests are bad ass and I should work on a DCSHB.com Family Crest.
The Roast of Bob Saget finally aired and boy was it great. Stamos hosted and was pretty funny but I'd have to say my favorites were Cloris Leachman and Gilbert Gottfried. I now know how to make an "asshurts" which is something I've always wanted to know how to do. Norm MacDonalad and Brian Posehn were a little awkard and Jon Lovitz just called him gay for five minutes. Overall, it was worth every minute of my life.

"which, if she'd ever paid attention to Michelle Tanner's attempts to do the same thing on Full House, she'd know Uncle Jesse wouldn't appreciate."
I love entertainment news. — Read More...
BuddyTV has been running some great What Are They Up To? articles and have recently ran one about Dave. In the article comments sillyd casually reminds us that Dave coined "cut it out" on the short lived Out Of Control.
The same day they ran Dave's story they conveniently ran a What Are They Up To? on Full House cast member Candace Cameron-Bure who is looking as fabulous as ever in this picture stolen from her website. — Read More...
