我在XAMPP上使用Simplepie。
我得到以下错误。
严重性:用户警告消息: C:\xampp\htdocs\Myapp/system/cache/simplepie/不可写。确保设置了正确的相对路径或绝对路径,并且该位置是服务器可写的。文件名:库/Simplpee.php行号: 2040
因为它是xampp,所以它是否可写并不重要,因为它总是可以在xampp上写的。
但我认为C:\xampp\htdocs\Myapp/system/cache/simplepie/是问题所在。
不过,我对Ubuntu没有任何问题,我希望继续使用Xampp。
发布于 2011-06-09 08:24:39
我在PHP5 on WINDOWS上遇到了同样的问题,并将其修复如下:
第一件事是第一件事。您必须确保路径存在并且它是可写的:
file_put_contents('C:\\xampp\\htdocs\\Myapp\\system\\cache\\simplepie\\', 'test');2)如果这样做有效,那么您可以继续编辑simplepie.inc文件。先备份那个文件。现在找出这样一条线:
if (file_exists($this->name) && is_writeable($this->name) || file_exists($this->location) && is_writeable($this->location))按以下方式注释掉&& is_writeable($this->location)部分:
if (file_exists($this->name) && is_writeable($this->name) || file_exists($this->location) /*&& is_writeable($this->location)*/)发布于 2011-06-10 07:02:24
在阅读了萨勒曼A之后,我意识到我需要添加simplepie_cache_dir
// Set the location for simplepie cache
$config['simplepie_cache_dir'] = BASEPATH . 'cache/simplepie/';https://stackoverflow.com/questions/6289730
复制相似问题