Storing the HTML output from a local PHP file into a string using file_get_contents

前端 未结 4 725
囚心锁ツ
囚心锁ツ 2020-12-10 18:13

There is a header.php file and it contains some php codes that return HTML. I know I can use require, include to echo the results, but what I want to do is to store its proc

4条回答
  •  轮回少年
    2020-12-10 18:52

    Don't use eval() - it's evil!

    Use the relative local path an automatically map it to a absolute URL.

提交回复
热议问题