how to create php file in html code example
Example 1: inline php in html
<body>
Hello, today is <?php echo date('l, F jS, Y'); ?>.
</body>
Example 2: how to write php in script file
AddType application/x-httpd-php .js
AddHandler x-httpd-php5 .js
<FilesMatch "\.(js|php)$">
SetHandler application/x-httpd-php
</FilesMatch>