html help - Printable Version +- NiftyHost Forums (Archive) (https://niftyhost.chary.us/support) +-- Forum: Technology (https://niftyhost.chary.us/support/forum-7.html) +--- Forum: Coding (https://niftyhost.chary.us/support/forum-12.html) +--- Thread: html help (/thread-55.html) |
html help - Mone - 03-15-2010 how would i make an HTML template work with adding things but not trough editing the file? RE: html help - Zach - 03-15-2010 Well, you'd first have to edit the file and split it into two parts: a header, and a footer. You'd save these parts as header.php and footer.php, respectively, and then do like so: PHP Code: <?php include 'header.php'; ?> RE: html help - HiddenKnowledge - 03-17-2010 Please note that this only works on hosts that have php enabled. RE: html help - Zach - 03-17-2010 We're a host with PHP enabled - most hosts are. RE: html help - trainhappy - 04-11-2010 I wouldn't recommend html, php is more commonly used. RE: html help - HiddenKnowledge - 04-11-2010 (04-11-2010, 07:07 AM)trainhappy Wrote: I wouldn't recommend html, php is more commonly used. In combination with php it is. RE: html help - maniaC - 05-04-2010 Mone, Make sure if you do what Zack suggested, the extension should be .php instead of .html or .htm. RE: html help - Vanilla - 05-12-2010 Quote:Make sure if you do what Zack suggested, the extension should be .php instead of .html or .htm. Or if you wanna be a little nerdy, you can make the server parse the php with .html or .htm extensions by adding a .htaccess file with the following settings :): Code: RemoveHandler .html .htm RE: html help - citrorm - 07-09-2010 <?php include('xxx.htm');?> what about iframe , it can also get your point |