0

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 ?

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

3 Comments

or tell the webserver to handle HTML as PHP in the httpdconf
yeah i did this but then i have to go back and change all the links to .php
That's maybe an hour work but it is the most normal practice as far as I know
1

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

AddType application/x-httpd-php .html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.