...s_set_dict() [function.scws-set-dict]: open_basedir restriction in effect. File(C:\Program Files\scws\etc\dict.utf8.xdb) is not within the allowed path(s): (D:/DedeAMPZ/WebRoot/Default) in D:\DedeAMPZ\WebRoot\Default\tld\dede\getwen.php on line 6 Warning: scws_set_rule() [function.scws-set-rule]: o...
...的编码都是utf8 还有就是如果我用 $so->set_dict('C:/Program Files/scws/etc/dict.xdb'); $so->set_rule('C:/Program Files/scws/etc/rules.utf8.ini'); 就会有警告: Warning: SimpleCWS::set_dict() [function.SimpleCWS-set-dict]: open_basedir restriction in effect. File(C:\Program Files...
配置文件不是问题啊, new XS('/path/to/file.ini'); 也可以的,XS 构造函数允许传入路径、文件内容都可以呢。
... = scws_new(); $cws->set_charset('utf8'); $cws->set_rule('D:/Program Files/scws/etc/rules.utf8.ini'); //注意路径 $cws->set_dict('D:/Program Files/scws/etc/dict.utf8.xdb'); $cws->add_dict(ROOT_PATH."inc/spider/dict_extra.txt", SCWS_XDICT_TXT);//新增词库 $cws->set_ignore(true); ...