When I try to save text using FCKeditor, too many extra unwanted slashes gets added to the text saved in database. thanks in adveance for 开发者_开发知识库any solution,suggestion
do a phpinfo()
and see if magic quotes are enabled - thats what it sounds like. If they are enabled (shame on your host) then you can make a php.ini file in the directory and put in the lines:
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
and that should fix you right up. You may need to use a .htaccess file depending on your webhost setup, in which case you'd use the line:
php_flag magic_quotes_gpc Off
Please use PHP's stripslashes
function
stripslashes($content);
精彩评论