Good morning everyone !. Personally I did this script, however, in the new version of PHP it is not working. Do you know how I can make this code in the new version?
<?php
// Mostrar Data na Tela.
$titulo = array();
$data = array();
$link = array();
$quantos = 0;
$exibir = 12;
$limite_title = 100;
foreach(file_get_contents("https://www.clubhost.com.br/cliente/announcementsrss.php")->channel->item as $item)
{
$titulo[] = utf8_decode(substr($item->title, 0, $limite_title)."...");
$link[] = $item->link;
$data[] = utf8_decode($item->pubDate);
$quantos++;
}
for($i = $quantos-($exibir+1); $i < $quantos-1; $i++)
{
if($titulo[$i]!="")
{
echo
'
<li>
<a href="'.$link[$i].'" target="_blank" title="Leia mais clicando aqui!">'.utf8_encode($titulo[$i]).'
</li>
';
}
}
?>