PHP stripslashes problem

2019-08-31 09:22发布

问题:

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.