note 98081 added to sphinxclient.open

From: Date: Tue, 25 May 2010 05:16:26 +0000
Subject: note 98081 added to sphinxclient.open
Groups: php.notes 
Request: Send a blank email to php-notes+get-169577@lists.php.net to get a copy of this message
boy oh boy, sphinx via php documentation is flaky at best. it appears (although i am still not 100% sure yet), that $sphinx->open(); needs to be called BEFORE $sphinx->setServer(... if one wishes to initiate a persistent connection. a little early to tell, but when using ->open() AFTER->setServer, i was receiving a lot of: sphinx_query() must not be called after sphinx_add_query() which appears to be sphinx complaining about running queries on a connection after a query has been ran (thus, non persistent connection...)... hope this helps! ---- Server IP: 64.71.164.2 Probable Submitter: 96.44.157.2 ---- Manual Page -- http://www.php.net/manual/en/sphinxclient.open.php Edit -- https://master.php.net/note/edit/98081 Del: integrated -- https://master.php.net/note/delete/98081/integrated Del: useless -- https://master.php.net/note/delete/98081/useless Del: bad code -- https://master.php.net/note/delete/98081/bad+code Del: spam -- https://master.php.net/note/delete/98081/spam Del: non-english -- https://master.php.net/note/delete/98081/non-english Del: in docs -- https://master.php.net/note/delete/98081/in+docs Del: other reasons-- https://master.php.net/note/delete/98081 Reject -- https://master.php.net/note/reject/98081 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169577) next »