So am I correct in assuming, creating a .htaccess file with the following:
AddType x-mapp-php4 .html .htm
will allow php code in a .html file to be executed (i.e. index.html)?
IS this pretty much the best solution if you have code in your index file that needs executing?
I know this is kind of basic, but I just need some reassurance! After all I am a code baby.
parsing html docs with php
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
The normal command for AddType is http://httpd.apache.org/docs/trunk/mod/ ... ml#addtype
Index files are set with the DirectoryIndex directive in the conf or .htaccess files. http://httpd.apache.org/docs/2.2/mod/mo ... ctoryindex
Code: Select all
AddType application/x-httpd-php .htmlIndex files are set with the DirectoryIndex directive in the conf or .htaccess files. http://httpd.apache.org/docs/2.2/mod/mo ... ctoryindex