tags:

views:

26

answers:

1

I am facing an issue while uploading a formatted text/html to the db, things work fine under the WAMP but when doing in LAMP I an having the backslash added to the quotes

string(114) "<p>
    <img alt=\"\" src=\"/ckfinder/userfiles/images/aboutkg.jpg\" style=\"width: 607px; height: 221px;\" /></p>
"

I am using a Zend_Form and ckeditor. And I am pretty sure I am missing something simple m what is it?

+2  A: 

You might be missing PHP's magic_quotes_gpc option or its friend magic_quotes_runtime . When those are enabled, PHP automatically escapes all quotes that arrive via HTTP request or are retrieved from database and so on. It's a deprecated feature intended to prevent SQL injection. See Magic Quotes chapter in PHP manual.

che
thanks that was it =), I disabled it from .htaccess "php_flag magic_quotes_gpc Off"
simple