note 96753 added to sphinxclient.escapestring
| From: | xxxbunkerdotcom at osu1 dot php dot net | Date: | Sun, 14 Mar 2010 16:12:03 +0000 |
| Subject: | note 96753 added to sphinxclient.escapestring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167013@lists.php.net to get a copy of this message | ||
according to http://www.sphinxsearch.com/forum/view.html?id=5225:
this function doesn't really do what one would expect (mysql_real_escape_string style) and is
more meant to escape individual keywords...
my experience it works better to manually escape reserved characters, for example:
$string='make big $ online';
$escaped=str_replace('$','\\$',$string);
----
Server IP: 192.41.40.227
Probable Submitter: 72.11.143.208
----
Manual Page -- http://www.php.net/manual/en/sphinxclient.escapestring.php
Edit -- https://master.php.net/note/edit/96753
Del: integrated -- https://master.php.net/note/delete/96753/integrated
Del: useless -- https://master.php.net/note/delete/96753/useless
Del: bad code -- https://master.php.net/note/delete/96753/bad+code
Del: spam -- https://master.php.net/note/delete/96753/spam
Del: non-english -- https://master.php.net/note/delete/96753/non-english
Del: in docs -- https://master.php.net/note/delete/96753/in+docs
Del: other reasons-- https://master.php.net/note/delete/96753
Reject -- https://master.php.net/note/reject/96753
Search -- https://master.php.net/manage/user-notes.php