Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webpage won't parse PHP code

Tags:

html

php

I'm trying to add some of my own PHP to a nearly-unreadable template file on a forum system. I know it all works perfectly as far as the server config, etc. goes, but PHP simply doesn't parse on this page. JS works fine. Any ideas? It's a simple .html page.

like image 540
AKor Avatar asked Aug 19 '26 12:08

AKor


1 Answers

Try adding this to your .htaccess (or creating a new one in the appropriate directory):

AddType application/x-httpd-php .php .html
like image 163
karim79 Avatar answered Aug 21 '26 01:08

karim79