首先要安装php-sphinx扩展,(安装方法)
$order_column = 'id DESC,time DESC';//排序规则
$s = new SphinxClient ();
$s->setServer ( 'sphinx_host', 'sphinx_port'); //$s->setServer("127.0.0.1", 9312);
//以上两句代码亦可使用$s = checkSphinx ();来...
1-18 3,362 views
首先要安装php-sphinx扩展,(安装方法)
$order_column = 'id DESC,time DESC';//排序规则
$s = new SphinxClient ();
$s->setServer ( 'sphinx_host', '...