file_put_contents is adding backslashes to the code

后端 未结 2 1648
一个人的身影
一个人的身影 2021-01-22 12:34

I use file_get_contents() & file_put_contents() to load and save a .css file. After saving the loaded file the file_put_content

2条回答
  •  逝去的感伤
    2021-01-22 12:50

    Stripslashes is probably what you're looking for. Certain PHP installations will automagically escape strings for you by adding slashes. This should reverse that.

    Check out Magic Quotes

提交回复
热议问题