Just Host Web Hosting Help
Executing PHP code within an HTML document
Problem:
Executing php code within a HTML document
Warning: Deprecated
This article is inaccurate or out of date and should not be used.
Solution:
Deprecated Executing php code within a HTML document is easy. Simply add this line to your main .htaccess file:AddHandler application/x-httpd-php5 .html .php .htmThen, you can insert code into your .html pages like this:
Code:<?php echo "hello world" ?>
177,581 views
bookmark
share
tags: addhandler addtype handler mime parse php sethandler
Recommended Help Content
897,790 views
tags: htaccess messing mod php redirect redirects rewrite variable variables
Related Help Content
130,262 views
tags: arabic character chinese collation japanese language languages mysql php phpmyadmin sets
132,004 views
tags: arabic change character chinese html japanese language languages sets
E-mail
Twitter
Google Bookmarks
Facebook
MySpace
Digg
Reddit
Delicious
LinkedIn
StumbleUpon