A client just recently moved an application through the stages to production. I set up a testing environment on an "out-of-the-box" LAMP server, and can submit a form wit开发者_如何学运维h a tick in the textarea.
But in production the exact same code dies, but doesn't even execute the "or die();"
I mysql_real_escape_string the input, which is why it works in my test environment.
Why wouldn't this work on the "same" setup?
Sounds like a php.ini issue, check your magic quotes options.
精彩评论