问题
I have a development machine that is local and a server out on the net. Weird thing is that when I use stripslashes on my development machine, all slashes are removed and when I upload the same code to the net server, I see the escape character even though I am using stripslashes. Anyone have any ideas?
回答1:
This could be Magic Quotes. Try to disable them or remove them before processing the data.
回答2:
Perhaps what the note says on the manual page might be the problem.
来源:https://stackoverflow.com/questions/1286968/php-stripslashes-problem