View Single Post
Old 02-10-2016, 06:58 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,057
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.



.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook