{"id":174,"date":"2010-02-03T23:13:00","date_gmt":"2010-02-03T22:13:00","guid":{"rendered":"http:\/\/kb.toderu.ro\/?p=174"},"modified":"2010-02-03T23:13:00","modified_gmt":"2010-02-03T22:13:00","slug":"how-can-i-execute-php-code-on-my-existing-myfile-html-page","status":"publish","type":"post","link":"https:\/\/kb.toderu.ro\/?p=174","title":{"rendered":"How can I execute PHP code on my existing myfile.html page?"},"content":{"rendered":"<p>\t\t\t\tThe way to execute PHP on a .html page is to modify your .htaccess file. This file may be hidden, so depending upon your FTP program you may have to modify some settings to see it. Then you just need to add this line for .html:<\/p>\n<p>    <code>AddType application\/x-httpd-php .html<\/code><\/p>\n<p>Or for .htm<\/p>\n<p>    <code>AddType application\/x-httpd-php .htm<\/code><\/p>\n<p>If you only plan on including the PHP on one page, it is better to setup this way:<\/p>\n<p>    <code><Files yourpage.html> AddType application\/x-httpd-php .html <\/Files><\/code><\/p>\n<p>This code will only make the PHP executable on the yourpage.html file, and not on all of your html pages.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The way to execute PHP on a .html page is to modify your .htaccess file. This file may be hidden, so depending upon your FTP program you may have to modify some settings to see it. Then you just need to add this line for .html: AddType application\/x-httpd-php .html Or for .htm AddType application\/x-httpd-php .htm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,10],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-apache","category-php"],"_links":{"self":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":0,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.toderu.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}