Include whole content of a file and echo it

后端 未结 6 1076
迷失自我
迷失自我 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:19

    Shortest way is:

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

    That will directly output the file.

提交回复
热议问题