Page 1 of 1

putting a php page in a html page

Posted: Mon Jul 28, 2008 9:39 pm
by Ichiro Sato
not sure if im posting in the right place but, im trying to put a php page inside a html page, is that possible?

Re: putting a php page in a html page

Posted: Mon Jul 28, 2008 11:58 pm
by flagday
You can place php code into an html file, but you need to make sure your .htaccess file allows for it on your server. Something like:

Code: Select all

AddType x-mapp-php5 .html .htm
AddType application/x-httpd-php .php .html
The html file will still need to have the standard html tags (html, body, etc.), or you could just use echo in php to generate those tags.

Hope that helps.