I show it when i execute file.

I have added php code in html file and run this file as .html extension. For this technique i have added below code in .htaccess file.

AddType application/x-httpd-php .html .htm

This whole folder is sub directory of wordpress project folder.When i am run this file in server, pop-up comes and my code file is opens in popup and it will give option to download. where i can see the whole code. What should i do to prevent to pop up box for download and run php code in html file and open as .html extension.

Can anyone help me what should i do?

Read more here: php code is not working inside .html file


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: