index.php是我得php文件,当输入某个网址的时候会加载index.php文件的内容;
但是index.php文件我目前是做调试用的,就是一个echo "hello";
现在我需要让index.php文件去调用我的一个html文件,该html文件是我要在页面显示的一些内容;
请问这个如何调用呢??
include 进来就可以了
file_get_contents('xxx.html');
include('xxx.html');$str = file_get_contents('a.html');echo $str;include require 都可
include require
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号