putting a php page in a html page
Moderator: General Moderators
-
Ichiro Sato
- Forum Newbie
- Posts: 1
- Joined: Mon Jul 28, 2008 9:36 pm
putting a php page in a html page
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
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:
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.
Code: Select all
AddType x-mapp-php5 .html .htm
AddType application/x-httpd-php .php .htmlHope that helps.