开发者

embedded php code in html being displayed

开发者 https://www.devze.com 2022-12-15 18:22 出处:网络
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....

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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号