Solved

associate .HTM extesion as .PHP in Apache

Posted on 2008-06-26
3
233 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now