Solved

associate .HTM extesion as .PHP in Apache

Posted on 2008-06-26
3
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
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 count occurrences of each item in an array.

697 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