Current time: 11-22-2024, 08:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
[solved] Problem interpreter php / html
Author Message
mikee mike Offline


Posts: 1
Joined: Oct 2008
Reputation: 0
Post: #1
Big Grin [solved] Problem interpreter php / html
Hello @ all Smile
I've got a server running ispCP.
For a web project I need to parse some .html files trough the php.
Please don't start a discussion if this is a good idea or not. I know that every file is send through php, but this website isn't very big. I just need to do this.

So normaly I can use a .htaccess file with following in it:

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

On many servers this works fine for me. So I can use some <?php ?> in .html files and everything is good. But with this server, running ispCP, I can't figure out, what's wrong.

For example, if I want to reach index.html the server either shows me a download box (so the .html file is'nt parsed with php interpreter), or does nothing with my <?php code ?> in the .html file and just shows the <?php > like a font.

So do you have any ideas what I could do ? I think I had to edit something in the apache config to get this to work ...

Thank you for your help !

Michael
Got it !!!! Smile

AddHandler php-fastcgi .html

was the solution !
(This post was last modified: 10-03-2008 05:31 PM by joximu.)
10-03-2008 08:39 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[solved] Problem interpreter php / html - mikee mike - 10-03-2008 08:39 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)