14, February 2012

parse html files with php - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: parse html files with php
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: parse html files with php  (Read 1951 times)
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0



« on: Feb 10, 2006, 04:30:33 pm »

Hi,

Is there any way to force apache to parse html files as php?

If yes can I do this using .htaccess?

Tnx.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5779
46271 credits
Members referred : 3



« Reply #1 on: Feb 10, 2006, 04:44:54 pm »

Use this on the .htaccess file :

Code:
<Files *.html>
      ForceType application/x-httpd-php
</Files>


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0



« Reply #2 on: Feb 10, 2006, 04:45:26 pm »

Thanks.

That works Smiley
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #3 on: Feb 11, 2006, 05:29:42 pm »

I use this line...

Code:
AddType application/x-httpd-php .html

... which is much the same as Nick's.


Last blog : Canonical URL Links / Tags
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #4 on: Feb 13, 2006, 12:14:00 am »

(curious) why would you want to parse HTML files as php


Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1525
6359 credits
Members referred : 8


Gimme all your cookies!!!


« Reply #5 on: Feb 13, 2006, 03:18:52 am »

This way you can add php code into a html file.


Last blog : Canonical URL Links / Tags
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1468
Tags : php html apache Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: parse html files with php
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 14, 2012, 05:13:43 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.