get_elements_by_tagname("entry"); foreach($entries as $entry) { $story_array[$counter] = new xml_story(); $element = $entry; $titles = $element->get_elements_by_tagname("title"); $title = $titles[0]; $story_array[$counter]->headline = $title->get_content(); $publish = $element->get_elements_by_tagname("published"); $date = $publish[0]; $story_array[$counter]->date = getDateFormat($date->get_content()); $content = $element->get_elements_by_tagname("content"); $description = $content[0]; $story_array[$counter]->description = $description->get_content(); $links = $element->get_elements_by_tagname("link"); $link = $links[0]; $href = $link->get_attribute_node("href"); $story_array[$counter]->href = $href->value(); $counter++; $labels = $element->get_elements_by_tagname("category"); foreach($labels as $label){ $labelTerm = $label->get_attribute_node("term"); $flag = 0; for($x = 0; $x < sizeof($labelArray); $x++){ if($labelArray[$x]['label'] == $labelTerm->value()){ $labelArray[$x]['num']++; $flag = 1; break; } } if($flag == 0){ $tempArray = array(); $tempArray['label'] = $labelTerm->value(); $tempArray['num'] = 1; $labelArray[sizeof($labelArray)] = $tempArray; } } } function getDateFormat($stamp){ $T = strrpos($stamp,"T"); $date = substr($stamp,0,$T); $year = substr($date,0,4); $month = substr($date,5,2); $day = substr($date,8,2); $time = substr($stamp,$T); $hour = substr($time,1,2); $min = substr($time,4,2); $format = "F jS, Y g:ia"; return date($format, mktime($hour, $min, 0, $month, $day, $year)); } ?> Birthday Freebies - SHINE TV by Lightship Mutual

'; } ?>
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
   Learn about SHINE TV      


Birthday Freebies


Most people know that restaurants will give away a scoop of ice cream or a slice of pie to a birthday girl. But a free oil change from the local mechanic? Free movie rentals? A round of golf? Now we're talking!

It's Good to be You
Head on over to Slickdeals.net, one of our favorite sites for great shopping discounts, and you will find an entire bulletin board dedicated to free stuff you can only get on your special day. Hey, we're for anything that keeps more dollars in your bank account.

Labels:

Comments: Post a Comment


View Additional Blog Entries





   Services    •    Community Forum   •   SHINE TV™   •   Contact Us   •   About Us   

Copyright © 2008, Lightship Mutual LLC. All Rights Reserved.   •  Media Relations  •   Privacy and Disclosure

CFP®, CERTIFIED FINANCIAL PLANNER™ and CFP (with flame logo) are certification marks owned by Certified Financial Planner Board of Standards Inc.  These marks are awarded to individuals who successfully complete CFP Board's initial and ongoing certification requirements.