Solved

associate .HTM extesion as .PHP in Apache

Posted on 2008-06-26
3
244 Views
Last Modified: 2013-12-13
I am running a Apache server on Linux.
I would like Apache to run .HTM or .HTML pages  as .PHP pages:
that means: I would like to be able to put directly some PHP code into .HTML pages (infact .htm or .html is seen exactly as if it were .php)
Regards
0
Comment
Question by:yarek
3 Comments
 
LVL 32

Accepted Solution

by:
Kamran Arshad earned 500 total points
ID: 21873424
Hi,

Please read the below article:

http://rssfeedreader.com/php.html
0
 
LVL 27

Expert Comment

by:caterham_www
ID: 21932925
Search for the Addhandler directive in your httpd.conf. You should habe a

AddHandler application/x-httpd-php .php already in place in order to process php files via php as an apache module. Just add the desired extensions like

AddHandler application/x-httpd-php .php .htm .html
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question