• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

how to run php code in .html file ?

G

gumush

Guest
i add vhost.conf file
DocumentRoot /home/httpd/vhosts/example.com/httpdocs
<Directory /home/httpd/vhosts/example.com/httpdocs>
<IfModule sapi_apache2.c>
AddType text/plain .php .php3 .phtml .html .htm
php_admin_flag engine off
</IfModule>
</Directory>

after reload apache but i didn't work ?
 
i miss text/plain

i add application/x-httpd-php and it works !
 
what does this excactly does?

whats good for ?

Im aksing cause i may note it down if i need it later :p
 
if you want to code in html file , you have to add these lines vhost.conf file, then php parse codes from html files.
 
Back
Top