PHP file_get_contents with php intact?

后端 未结 6 1488
后悔当初
后悔当初 2021-02-15 16:30

As opposed to using an include, which executes the included php in the file...is it possible to save the contents of a php file to a variable - but with the php still intact and

6条回答
  •  半阙折子戏
    2021-02-15 17:04

    Even though it is often purported to be evil, you could try using eval() along with get_file_contents()

提交回复
热议问题