9, July 2008

parse html files with php - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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



« on: Feb 10, 2006, 05: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: 7943
40607 credits
Members referred : 3



« Reply #1 on: Feb 10, 2006, 05: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
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0



« Reply #2 on: Feb 10, 2006, 05:45:26 PM »

Thanks.

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


Gimme all your cookies!!!


« Reply #3 on: Feb 11, 2006, 06:29:42 PM »

I use this line...

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

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


Last blog : Site of the Month - August 2007
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: Feb 13, 2006, 01:14:00 AM »

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

Visit through proxy Visit through proxy Visit through proxy

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


Gimme all your cookies!!!


« Reply #5 on: Feb 13, 2006, 04:18:52 AM »

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


Last blog : Site of the Month - August 2007
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jul 09, 2008, 11:41:20 AM





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!


Forum Statistics
Total Posts: 35.587
Total Topics: 7.355
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

34 Guests, 3 Users online :

18 users online today:



Readers

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