编码问题找到原因,我使用的是PHP5版本,默认执行了这个构造函数 function __construct() { $this->PSCWS4(); } 导致使用的仍是GBK编码,$cws->set_charset('utf8');一下就可以了。 期待帮忙答复一下第二个问题,谢谢老大。
... lib/XS.php(1986): XSServer->open('8383') #5 lib/XS.php(326): XSServer->__construct('8383', Object(XS)) #6 lib/XS.php(240): XS->getIndex() #7 Indexer.php(155): XSComponent->__get('index') #8 {main}
...S.php(296): XS->loadIniFile('/export/home/ww...') #2 Logger.php(94): XS->__construct('/export/home/ww...') 配置文件没有问题,搜索结果也正常,但是更新log_db这个命令,就是报错
... lib/XS.php(1817): XSServer->open('8383') #2 lib/XS.php(318): XSServer->__construct('8383', Object(XS)) #3 lib/XS.php(232): XS->getIndex() #4 Indexer.php(121): XSComponent->__get('index') 请问这个问题该如何解决,谢谢
... lib/XS.php(2011): XSServer->open('8383') #3 lib/XS.php(342): XSServer->__construct('8383', Object(XS)) #4 lib/XS.php(249): XS->getIndex() #5 Indexer.php(155): XSComponent->__get('index') #6 {main} 什么问题,希望有人解答 谢谢
...4): XS->loadIniFile('/www/xunsearch/...') #3 util/Indexer.php(120): XS->__construct('/www/xunsearch/...') #4 {main} [root@localhost php]# 请管理员看看,是什么问题,是目录问题吗?
...DatabaseDataSource->init() #2 XSDataSource.class.php(51): XSDataSource->__construct('mysql://root:12...', 'SELECT * FROM d...') #3 Indexer.php(244): XSDataSource::instance('mysql://root:12...', 'SELECT * FROM d...') #4 {main} [root@localhost ~]# 请问是什么错误?[hr] 已解决,是ph...
...lib/XS.php(2011): XSServer->open(8383) #2 ../lib/XS.php(342): XSServer->__construct(8383, Object(XS)) #3 ../lib/XS.php(249): XS->getIndex() #4 Indexer.php(155): XSComponent->__get('index') #5 {main} [/code]
...n(8383) #2 ../../usr/local/xunsearch/sdk/php/lib/XS.php(342): XSServer->__construct(8383, Object(XS)) #3 ../../usr/local/xunsearch/sdk/php/lib/XS.php(249): XS->getIndex() #4 Indexer.php(155): XSComponent->__get('index') #5 {main}
.../lib/XS.php(2152): XSSearch->open(8384) 6 ../lib/XS.php(356): XSServer->__construct(8384, Object(XS)) 7 ../lib/XS.php(253): XS->getSearch() 8 Quest.php(106): XSComponent->__get('search') 9 {main} 这个结果正确吗