There is a wonderful library for Sphinx. The library uses namespaces and I have some problems with it. I cannot figure out how to make it work. I need your help.
Example
use Foolz\SphinxQL;
use Foolz\SphinxQL\Connection;
// create a SphinxQL Connection object to use with SphinxQL
$conn = new Connection();
$conn->setParams(array('host' => 'domain.tld', 'port' => 9306));
//rest of code ...
I don’t know whether what you’re doing is the correct approach, but that aside, you need to double up your backslashes. At the moment, you’re just escaping the next letter in the string.