1
Hello, I have a PHP here that "generates" images newly hosted in the game in which I play, and I was wondering if it is possible to make it generate more images, without repeating any, is it possible? (it is important to 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 you press a button, it fetches the next images, hosted php link: http://rafagarcia.pe.hu/hebbo.php
Hello, look what’s happening: http://rafagarcia.pe.hu/hebbo2.php
– Rafa
can help me?
– Rafa