Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72618

Can't run php in html

$
0
0

I am trying to run php in html. I know that I can change this to a .php file, but for some complication reasons, I cannot do this. Mainly, I am running nodejs code, and forwarding to a directory. It's not working when I try to forward to this directory with a .php extension.

Anyways, I am trying to get my server to just be able to read php in html files. I have tried this in my .htaccess:

AddType text/html server-parsed .shtml .shtm .htm .html
AddHandler x-mapp-php5 application/x-httpd-php

but no cigar. php in the html file is commented out in real time when I try to view it in realtime. Please if any ideas. Thanks.


Viewing all articles
Browse latest Browse all 72618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>