Test Multimedia | Milwaukee Neighborhood News Service
phpprint '<link rel="stylesheet" type="text/css" href="https://milwaukeenns.org/custom-css/photoEssay.css" /‘;
?>
Check out some of our the latest and greatest video.
php//load xml from flickr$vxml = simplexml_load_file('photo-essay/video-essay.xml');//echo "<pre“; var_dump($xml); echo “
“;
//loop through xml nodes
for ($v = 0; $v < sizeof($vxml->videoessay); $v++) {
//parse xml node
$vid = $vxml->videoessay[$v]->id;
$vurl =  $vxml->videoessay[$v]->url;
$vimage = $vxml->videoessay[$v]->image;
$vtitle = $vxml->videoessay[$v]->title;
$vlink = $vxml->videoessay[$v]->link;
$vdescription = $vxml->videoessay[$v]->description;
//create array and store data for each node
if ($videoEssayArray == false)	{
$videoEssayArray = array(array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
} else array_push($videoEssayArray, array($vid, $vurl , $vimage , $vtitle , $vlink, $vdescription ));
};
//display a formatted list of results
echo ‘
‘);
}
echo ‘
‘;
//create content for links
for ($v = 0; $v < sizeof($videoEssayArray); $v++) {print_r('
‘.’
‘.$videoEssayArray[$v][5].’
View the original article