Forum Moderators: coopster
AddType application/x-httpd-php htm html
But, is there a code that can be used to accomplish running a single .html page as php instead of the above code that runs every page on the site as php?
I know that I could just change the .html to .php, but I really want to know if I can run a single .html page as php without changing the extension and without using the (AddType application/x-httpd-php htm html) code that will run all of my .html pages as php.
<?php
your php code here
?>
</body>
</html>
This will only work if you put a .php extension on the page. I am trying to figure out how to get the server to read this one page as php eventhough it has a .html extension without having the server read every .html page in the site as php.
Apache Module mod_mime [httpd.apache.org]
[webmasterworld.com...]