View Single Post
Old 11-08-2015, 07:35 AM  
lezinterracial
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Posts: 3,063

Quote:
Originally Posted by EddyTheDog View Post
This was my solution:

Code:
<?php 

$cacheName = 'chatcache.xml'; 

$ageInSeconds = 60; 
  
if(!file_exists($cacheName) || filemtime($cacheName) > time() + $ageInSeconds);  
{ 
  $contents = file_get_contents('http://chaturbate.com/affiliates/api/onlinerooms/?format=xml&wm=isCir'); 
  file_put_contents($cacheName, $contents); 
} 

?>
I like that much better. The file_exists is needed or I end up defaulting to the iframe on my landing page.

I was using Iframe's showing the top room, but I am targeting heteros, And those Voyeur_Boys are getting popular.
__________________
Live Sex Shows
lezinterracial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote