PHP Snippet 1:
AddHandler application/x-httpd-php .htm .html
PHP Snippet 2:
<Files />
AddType application/x-httpd-php .html
</Files>
PHP Snippet 3:
AllowOverride All
AccessFileName .htaccess
PHP Snippet 4:
<?php error_reporting(E_ALL);?>
PHP Snippet 5:
<?php require ('headings.php'); ?>
<?php require ('navbar.php'); ?>
<?php require ('image.php'); ?>
PHP Snippet 6:
include __DIR__.'/navbar.php'; // PHP 5.3 and later
include dirname(__FILE__).'/navbar.php'; // PHP 5.2
PHP Snippet 7:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Use PHP in HTML files</TITLE>
</HEAD>
<BODY>
<h1>
<?php echo "It works!"; ?>
</h1>
</BODY>
</HTML>
PHP Snippet 8:
readfile(__DIR__ . '/../public/react.html');
exit();