Code:
$cams = new SimpleXMLElement('cams.xml', null, true);
if(isset($_GET['cam']))
{
foreach ($cams as $user)
{
if(strtolower($user->username)==strtolower($_GET['cam']))
{
echo $user->iframe_embed_revshare;
break;
}
}
}
A couple of little changes to make it a little better implementation. Still inefficient as hell to have to go through the whole xml file each time you want something. imho of course.
.