How does a PHP program call html files? Thank you for your guidance !! Index. php is my php file. when I enter a URL, the index will be loaded. php file content, but index. php file I am currently using for debugging, is an echo & nbsp; hello; now I need to make index. PHP files call one of my html files. this html file is some of the content I want to display on the page. how can I call this? how can PHP programs call html files? Thank you for your guidance !!
Index. php is my php file. when I enter a URL, the content of the index. php file will be loaded;
However, I currently use the index. php file for debugging, which is an echo "hello ";
Now I need to let the index. php file call one of my html files, which are some of the content I want to display on the page;
How can I call this ??
Share: More
------ Solution --------------------
Include('xxx.html ');
Or
$ Str = file_get_contents('a.html ');
Echo $ str;