How can I replace the deprecated set_magic_quotes_runtime in php?

前端 未结 10 2230
无人及你
无人及你 2020-12-03 03:58

I\'m getting this message when I try to run a php script I have to use but did not write.

Deprecated: Function set_magic_quotes_runtime() is deprecated in /o         


        
10条回答
  •  忘掉有多难
    2020-12-03 04:42

    You don't need to replace it with anything. The setting magic_quotes_runtime is removed in PHP6 so the function call is unneeded. If you want to maintain backwards compatibility it may be wise to wrap it in a if statement checking phpversion using version_compare

提交回复
热议问题