Page 1 of 1

PHP in .html extention

Posted: Wed Aug 04, 2004 10:08 am
by jslick
I found this article by feyd: http://www.javascriptkit.com/howto/htaccess4.shtml
It describes how to enable SSI through .htaccess and how to enable it with .html, too. How could I do that with PHP? So, how could I make it so I can have PHP in .html extentions?

Posted: Wed Aug 04, 2004 12:04 pm
by feyd
that actually isn't by me.. :D

The easiest way to do it, if you have access to the type controls is just tell apache .html files are to be processed at php files.

Posted: Wed Aug 04, 2004 12:15 pm
by jslick
This: http://www.javascriptkit.com/howto/htaccess.shtml
Tutorial written and contributed by Feyd, moderator of the JK Forum. Please see tutorial footnote for additional/bio info on author.
Are you not that feyd?

You mean shell access? I dont' have shell access. Is there not a way to do it with .htaccess. If so, how?

Posted: Wed Aug 04, 2004 12:18 pm
by feyd
Correct, that is not me. Purely coincidence.. I guess we both like Dune a bit :)

it can be done through cpanel, in the extension types manager...

Posted: Wed Aug 04, 2004 1:18 pm
by jslick
feyd wrote:Correct, that is not me. Purely coincidence.. I guess we both like Dune a bit :)

it can be done through cpanel, in the extension types manager...
Mime types???

Posted: Wed Aug 04, 2004 1:27 pm
by feyd
yep.. the mime-type manager..

Posted: Wed Aug 04, 2004 1:34 pm
by jslick
But doesn't let me edit, just add a new one, and the .php extention already exists. Do I just add another one? Will it overwright the other one? Kind of confused.

Posted: Wed Aug 04, 2004 1:35 pm
by feyd
adding a new type will overwrite/overload the other one..

Code: Select all

User Defined Mime Types
application/x-httpd-php	.html .js .css
is what I had in a recent project..

Posted: Wed Aug 04, 2004 1:40 pm
by jslick
okay, I don't think I'll do it then.