Hi,
I'm just getting started with PHP. I'm trying to embedd some PHP code in a .htm file (info.htm). When I view the .htm file, the php code doesn't work. The contents of my info.htm is as follows:
info.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>
If I save this file as info.php, it works.
I have PHP Version 4.3.2 running with Apache 2.0 on a CentOS (RH9) server.
Is there a setting in Apache that makes the PHP engine parse my html or do all files with PHP code need to have a .php extension?
Any help would be appreciated.