...ommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号
...L534 (显示) public function setUtf8(){ if (version_compare(mysql_get_server_info($this->link), '4.1.0', '>=')) { return @mysql_query("SET NAMES utf8", $this->link); } return false;} 将输出字符集设置为 UTF-8
...EARCH_SCWS_GET, XS_CMD_SCWS_HAS_WORD, 0, $text, $xattr); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf === 'OK';} 判断是否包含指定词性的词
...an not open input file: '$file'"); } $this->line = 0; if (isset($_SERVER['XS_CSV_DELIMITER'])) { $this->delim = $_SERVER['XS_CSV_DELIMITER']; }}
...hp#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . __CLASS__); } self::$_server = $xs->getScwsServer()...
...pass)) === false) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!mysql_select_db($param['dbname'], $this->link)) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbname']}'"); } $this->setUtf8();} ...