tags:

views:

106

answers:

2

i bought this php script 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 ?

+3  A: 

change the file extension from .html to .php =)

Grsm
That's one possible and blatant fix...
strager
or tell the webserver to handle HTML as PHP in the httpdconf
Gordon
there isnt another fix, lol?!
tarnfeld
yeah i did this but then i have to go back and change all the links to .php
wpiri
That's maybe an hour work but it is the most normal practice as far as I know
Grsm
+1  A: 

Add this to your .htaccess file to have PHP process your file:

AddType application/x-httpd-php .html
Zed