Read a .php file using php

后端 未结 3 1779
暗喜
暗喜 2021-01-14 18:01

How to read a .php file using php

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 18:40

    Let's say you have two files a.php and b.php on same folder.

    Code on the file b.php

    
    

    and code on a.php

    You access a.php on browser.

    What do you see? A blank page.

    Please check the page source now. It is there.

    But not showing in browser as is not a valid html tag. So browser can not render it properly to show as output.

    Now you can see the output in browser.

提交回复
热议问题