Execute PHP in a HTML file without PHP language -


I want to execute a PHP file in my HTML code. I can not use the PHP language such as:

Because the site is working with templates, and it is impossible to rename them in php

So I have PHP at the specific place of the HTML code ), So that everything in the PHP file will be visible there.

P>

For example:

  & lt; Tr & gt; & Lt; Th & gt; Table: & lt; / Th & gt; & Lt; TD & gt; !! PHP executed here !! & Lt; / TD & gt; & Lt; / TR & gt;  

Any ideas?

If the problem is that you can not rename the file to * .php, but the server on PHP Has been installed on. You can create all your .html files in .htaccess file to execute as .php. See this answer; .


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -