Include whole content of a file and echo it

后端 未结 6 1078
迷失自我
迷失自我 2020-12-10 02:54

I need to echo entire content of included file. I have tried the below:

echo \"\";

echo \"inc         


        
6条回答
  •  温柔的废话
    2020-12-10 03:05

    Echo prints something to the output buffer - it's not parsed by PHP. If you want to include something, just do it

    include ('http://www.mysite.com/script.php');
    

    You don't need to print out PHP source code, when you're writing PHP source code.

提交回复
热议问题