NiftyHost Forums (Archive)

Full Version: html help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how would i make an HTML template work with adding things but not trough editing the file?
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'?>
content lorem ipsun i dunno how to spell that
<?php include 'footer.php'?>
If you give me the template, I'll split it.
Please note that this only works on hosts that have php enabled.
We're a host with PHP enabled - most hosts are.
I wouldn't recommend html, php is more commonly used.
(04-11-2010, 07:07 AM)trainhappy Wrote: [ -> ]I wouldn't recommend html, php is more commonly used.

In combination with php it is.
Mone,

Make sure if you do what Zack suggested, the extension should be .php instead of .html or .htm.
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
AddType application/x-httpd-php .php .htm .html
<?php include('xxx.htm');?>

what about iframe , it can also get your point