Hello, I have a PHP here that "generates" images recently hosted in the game I play in, and wanted to know if it is possible to make it generate more images without repeating any, is it possible? (it's important that you always continue the same value of images on the page, but just change the images)
<?php
$url = "http://hebbohotel.com.br/swf/gamedata/hebbo_texts.txt?9761831";
$data = file_get_contents($url);
$newlines = array("\n" ,"\r", "\r\n", ">", "<", "/");
$content = str_replace($newlines, "", html_entity_decode($data));
$statusHtml = '/badge_desc_(.+?)=/';
preg_match_all($statusHtml, $content, $statusRaw);
$badges = implode("-", $statusRaw[0]);
$badgeVar = explode("=-badge_desc_", $badges);
$badgeVar2 = str_replace("=", "", $badgeVar);
$badgeVar3 = str_replace("badge_desc_", "", $badgeVar2);
$number = count($badgeVar3);
$i = 1;
$e = 24;
while ($i <= $e)
{
$number = $number - 1;
$imageUrl = "http://hebbohotel.com.br/swf/c_images/album1584/" . $badgeVar3[$number] . ".gif";
echo '<div class="emblema" style="background:url(' . $imageUrl . ') no-repeat center, #E7E7E7;"></div>'; // changed this echo to display the image.
$i++;
}
?>
I want when I hit a button, it looks for the next images, hosted php link: link