Allora... Sto tentando di far andare SimplePie sul mio sito web (http://fastaccess.altervista.org), ma con risultati alquanto infelici...
Praticamente, nell'<iframe> che dovrebbe contenere gli RSS mi risulta l'errore
codice:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /membri/fastaccess/create.php on line 164
Di seguito il codice
Codice PHP:
<?php
require_once 'php/simplepie.inc';
[...] //Tutte cose native riguardanti il charset
class SimplePie {
SimplePie ([string $feed_url], [string $cache_location], [int $cache_duration])
}
?>
<html>
<body>
<?php
$feed = new SimplePie();
$feed->set_feed_url('http://rss.adnkronos.com/RSS_PrimaPagina.xml');
$feed->enable_order_by_date(false);
$feed->set_cache_location($_SERVER['DOCUMENT_ROOT'] . '/cache');
$feed->init();
echo $feed->get_title();
?>
</body>
</html>
La riga incriminata (164) è la seguente:
Codice PHP:
SimplePie ([string $feed_url], [string $cache_location], [int $cache_duration])
Sapete aiutarmi?