我的头有点痛ABSPATH Windows中的常量
在Windows中寻址文件和文件夹通常使用\\ (正斜杠)字符,而对于Linux,字符为/ (反斜杠)<不幸的是ABSPATH 在Wordpress中,定义时只考虑Linux(将/ 最后)<我想知道我是否能超越它的定义wp-config.php 根据if 表示可以在其他地方定义的子句。
Problem detalis:
我正在跑步localhost问题在于statpress-visitors 内部寻址这是它处理文件的方式:
ABSPATH . \'wp-content/plugins/\' . dirname(plugin_basename(__FILE__)) . \'/def/os.dat\'
这就是我得到的输出:
C:\\wamp\\www\\wp/wp-content/plugins/statpress-visitors/def/os.dat