Forum Moderators: coopster

Message Too Old, No Replies

php & html

php & html

         

Fess

11:15 pm on Nov 13, 2006 (gmt 0)

10+ Year Member



Hello,

Currently I've installed a blog.

I'd like the blog to appear at the bottom of my index.html page.

I don't want to put it in a invisible frame in my webpage.

After reading a little on .php, it seems that I cannot have my blog appear in a .html webpage unless the I save the webpage as index.php.

Just to be sure, is there anyway of making .php work in a .html page?

Thanks
Fess

eelixduppy

11:19 pm on Nov 13, 2006 (gmt 0)



Assuming you are using Apache, you have to go into your httpd.conf file and change this:

AddType application/x-httpd-php .php

To something like this:


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

Fess

5:35 pm on Nov 14, 2006 (gmt 0)

10+ Year Member



eelixduppy,

Thanks for the informaion.

I'll look into your suggestions

Jimmyco

12:38 am on Nov 15, 2006 (gmt 0)

10+ Year Member



I would look into PHP includes, and not mess with the apache settings!

[edited by: Jimmyco at 12:41 am (utc) on Nov. 15, 2006]

eelixduppy

1:21 am on Nov 15, 2006 (gmt 0)



Jimmyco, that solution would work, however I think he wants to keep the file name index.html :)