Pau*_*nak 2 php simplepie document-root
Ehrm.我知道这看起来很简单(就像馅饼,哈哈),但我一直在努力
Warning: /cache/ is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.
Run Code Online (Sandbox Code Playgroud)
这是我的情况.我有easypie从我的域上的各个级别和文件夹中提取.因此,如果它在一个地方工作,那么我在其他地方得到这个警告.(例如它在子文件夹中.)
所以,我试图通过编辑simplepie.inc文件中的第501行来指定实际的完整路径位置
var $cache_location = $_SERVER['DOCUMENT_ROOT'] . "/cache/";
Run Code Online (Sandbox Code Playgroud)
但是,这是语法错误.....
那么,A)为什么?我知道我错过了一些愚蠢的东西.
和B)有更好/更有效的方法来做到这一点?
谢谢你提前!