I just tried Magpierss. Here’s my script:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

</head>

 

<body>

<?php

require_once 'magpierss-0.72\rss_fetch.inc';

 

$url = 'http://detik.feedsportal.com/c/33613/f/590272/index.rss';

$rss = fetch_rss($url);

 

echo "Site: ", $rss->channel['title'], "<br>";

foreach ($rss->items as $item ) {

     $title = $item[title];

     $url   = $item[link];

     echo "<a href=$url>$title</a><br>

";

}

?>

 

</body>

</html>

 

It works, but I get warning messages like this:

 

Site: health.detik

Notice: Use of undefined constant title - assumed 'title' in D:\www_trial\cobarss\index.php on line 17

Notice: Use of undefined constant link - assumed 'link' in D:\www_trial\cobarss\index.php on line 18
Mana Lebih Baik, Hidup di Panti Jompo atau Tinggal dengan Anak Saat Tua?

Notice: Use of undefined constant title - assumed 'title' in D:\www_trial\cobarss\index.php on line 17

Notice: Use of undefined constant link - assumed 'link' in D:\www_trial\cobarss\index.php on line 18
Tak Cuma Bagus Buat Jantung, Teh Hijau Juga Pas untuk Otak

Notice: Use of undefined constant title - assumed 'title' in D:\www_trial\cobarss\index.php on line 17

Notice: Use of undefined constant link - assumed 'link' in D:\www_trial\cobarss\index.php on line 18
Punya Alergi Ternyata Bisa Mencegah Tumor Otak

 

 

What’s wrong with this?

 

Thank you