开发者

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
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜