embedded php code in html being displayed
i bought this php script开发者_JAVA百科 and all the pages are in .html
when I upload it to my ubuntu server and access the site, the php codes are literally displayed along with the html....
what gives ? how to fix this ?
change the file extension from .html
to .php
=)
Add this to your .htaccess
file to have PHP process your file:
AddType application/x-httpd-php .html
精彩评论