html help
03-15-2010, 04:54 AM,
#1
html help
how would i make an HTML template work with adding things but not trough editing the file?
Reply
03-15-2010, 05:33 AM,
#2
RE: html help
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.
Hi! I'm Zach, and I founded NiftyHost. If you need anything, just PM me! :)
Reply
03-17-2010, 03:40 AM,
#3
RE: html help
Please note that this only works on hosts that have php enabled.
With love,
HiddenKnowledge
A.k.a. Yoruichi Shihouin

If you have any questions, feel free to contact me trough email or pm. :)
Reply
03-17-2010, 06:30 AM,
#4
RE: html help
We're a host with PHP enabled - most hosts are.
Hi! I'm Zach, and I founded NiftyHost. If you need anything, just PM me! :)
Reply
04-11-2010, 07:07 AM,
#5
RE: html help
I wouldn't recommend html, php is more commonly used.
[Image: sig12.jpg]
Reply
04-11-2010, 07:08 AM, (This post was last modified: 04-11-2010, 07:09 AM by HiddenKnowledge.)
#6
RE: html help
(04-11-2010, 07:07 AM)trainhappy Wrote: I wouldn't recommend html, php is more commonly used.

In combination with php it is.
With love,
HiddenKnowledge
A.k.a. Yoruichi Shihouin

If you have any questions, feel free to contact me trough email or pm. :)
Reply
05-04-2010, 04:33 AM, (This post was last modified: 05-13-2010, 05:05 PM by maniaC.)
#7
RE: html help
Mone,

Make sure if you do what Zack suggested, the extension should be .php instead of .html or .htm.
Reply
05-12-2010, 06:50 AM,
#8
RE: html help
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
Reply
07-09-2010, 06:42 PM,
#9
RE: html help
<?php include('xxx.htm');?>

what about iframe , it can also get your point
飞蚊症信息网
Reply


Forum Jump: