+ 2
How to include PHP file in HTML file?
It's possible to include some functions from PHP file to HTML file like CSS or JS files and how server read functions if I have two PHP files just in case for learning!
4 Answers
+ 2
By default, the server will only process files that end with .php, so You must create a .php file, put your HTML inside it, then include any php you'd like.
+ 5
Thanks again that was useful information đ
+ 3
<?php
include("yourFile.php");
?>
+ 2
<?php include 'YourFileLocation' ; ?>