11.jpg



+
brain
contact
comment

links
resource
here
3
shaice
my last entry on my twitter scratchblog.

twitter Syndicated content not available'; } xml_parser_free($xml_parser); } function startElement($parser, $name, $attrs) { global $insideitem, $tag, $title, $content, $description, $link, $image, $insideimage; if ($insideitem || $insideimage) { $tag = $name; } if ($name == "ITEM" ) { $insideitem = true; } if ($name == "IMAGE") { $insideimage = true; } } function endElement($parser, $name) { global $insideitem, $tag, $title, $content, $description, $link, $image, $insideimage, $show_detail, $show_content, $headline_style, $detail_style, $count, $max; if ($name == "URL") { echo 'image

'; $insideimage=false; $image=""; } else if ($name == "ITEM" && $count < $max) { $count++; printf('%s',trim($link),trim($title)); if ($show_content) printf('
%s
',trim($content)); if ($show_detail) printf('
%s
',trim($description)); echo "
"; $title = ""; $content = ""; $description = ""; $link = ""; $insideitem = false; } else if ($count >= $max) { $title = ""; $content = ""; $description = ""; $link = ""; $insideitem = false; } } function characterData($parser, $data) { global $insideitem, $tag, $title, $content, $description, $link, $image, $insideimage; if ($insideimage) { switch ($tag) { case "URL": $image .= $data; break; } } if ($insideitem ) { switch ($tag) { case "TITLE": $title .= $data; break; case "CONTENT:ENCODED": $content .= $data; break; case "DESCRIPTION": $description .= $data; break; case "LINK": $link .= $data; break; } } } ?>