define('MAGIC_QUOTES_GPC',ini_set("magic_quotes_runtime",0)?True:False);即可 转载于:https://my.oschina.net/jesusslim/blog/415562