Example Output";
echo "Channel: " . $rss->channel['title'] . "
";
echo "
";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "- $title
";
}
echo "
";
}
else {
echo "Error: " . magpie_error();
}
?>
Parsed Results (var_dump'ed)
Error: PHP compiled without XML support (--with-xml), Mapgie won't work without PHP support for XML.
\n";
exit;
}
else {
echo "OK: Found an XML parser.
\n";
}
if ( ! function_exists('gzinflate') ) {
echo "Warning: PHP compiled without Zlib support (--with-zlib). No support for GZIP encoding.
\n";
}
else {
echo "OK: Support for GZIP encoding.
\n";
}
if ( ! (function_exists('iconv') and function_exists('mb_convert_encoding') ) ) {
echo "Warning: No support for iconv (--with-iconv) or multi-byte strings (--enable-mbstring)." .
"No support character set munging.
\n";
}
else {
echo "OK: Support for character munging.
\n";
}
}
?>