首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >致命错误:第59行C:\ProgramFiles\EasyPHP-12.1\www\simplepie\library\SimplePie.php中找不到类“SimplePie_Misc”

致命错误:第59行C:\ProgramFiles\EasyPHP-12.1\www\simplepie\library\SimplePie.php中找不到类“SimplePie_Misc”
EN

Stack Overflow用户
提问于 2013-09-20 08:47:04
回答 1查看 1.2K关注 0票数 0

我开始为RSS使用simplepie,并且在第一阶段本身就遇到了这个错误。

致命错误:在第59行的C:\ProgramFiles\EasyPHP-12.1\www\simplepie\library\SimplePie.php中找不到类'SimplePie_Misc‘

编辑主文件夹称为“simplepie”,子文件夹和文件是

  1. 构建
  2. 缓存
  3. compatibilty_test
  4. css
  5. idn
  6. 包括
  7. 库(有SimplePie.php和一个名为SimplePie的文件夹)
  8. 测试
  9. index.php

这是代码

代码语言:javascript
复制
<?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>  
EN

回答 1

Stack Overflow用户

发布于 2013-12-19 08:17:36

在缓存第一行中有一件事是错误的。应该是enable_cache

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18912430

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档