Я начал использовать simplepie для RSS и столкнулся с этой ошибкой на самом первом этапе.
Неустранимая ошибка: класс SimplePie_Misc не найден в C:\Program Files\EasyPHP-12.1\www\simplepie\library\SimplePie.php в строке 59
EDIT Основная папка называется «simplepie». Вложенные папки и файлы
- строить
- тайник
- совместимость_тест
- css
- идн
- включает в себя
- библиотека (имеет SimplePie.php и папку SimplePie)
- тесты
- index.php
ЭТО КОД
<?php
//Load simplepie library
require_once 'includes/autoloader.php';
//new simplepie
$feed = new SimplePie();
//address of multiple feeds
$feed->set_feed_url(array(
'http://crazyanagh.blogspot.com/feeds/posts/default'
));
//enabling cache
$feed->enable->cache(true);
$feed->set_cache_location('cache');
$feed->set_cache_duration(1800);
//start the process
$feed->init();
//handle all types(RSS, Atoms)
$feed->handle_content_type();
?>
<!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" />
<link rel="stylesheet" href="css/default.css" />
<title>RSS Thing!</title>
</head>
<body>
<div id="container">
<h1> SimplePie RSS Thing</h1>
</div><!--end container-->
</body>