Quick question...

Elderly Newt

Senior member
May 23, 2005
430
0
0
Is there a way to display the same information on multiple pages without having to manually type it out on every page? (besides using frames). For example, if i wanted to display "last updated" information at the bottom of all the pages, is there a way to edit one file and have it show up on all the pages? I hope I'm making sense. I've looked at different web development sites but couldn't find anything, although it doesn't help that I don't know what the term for it is. Thanks.
 

Aikouka

Lifer
Nov 27, 2001
30,383
912
126
Originally posted by: Elderly Newt
Is there a way to display the same information on multiple pages without having to manually type it out on every page? (besides using frames). For example, if i wanted to display "last updated" information at the bottom of all the pages, is there a way to edit one file and have it show up on all the pages? I hope I'm making sense. I've looked at different web development sites but couldn't find anything, although it doesn't help that I don't know what the term for it is. Thanks.

Yep, you can use a PHP script to just include a file on a webpage at a certain position. The file could literally just contain "<font size="2">Last Updated on: 12/7/2006</font>".

Here's information PHP's include: http://us2.php.net/include/

Also instead of a frame, you could just use an iframe?
 

sandyman

Junior Member
Nov 30, 2006
11
0
0
php scripting is prolly the best solution. Sometimes using Dreamweaver Templates is a good idea if you have Dreamweaver, the php is prolly more flexible. I would actually like to here more ideas about templating vs php scripts though.
 

Elderly Newt

Senior member
May 23, 2005
430
0
0
Thanks, I wasn't aware of iframes. That looks so be what I need.

PHP might be better, but I have no experience with it at all, and I'm simply using Mozilla Composer at the moment until I can get my FrontPage CD and install that.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Besides php, lots of servers also support server-side-includes which is quite handy for this. It's a little bit cleaner than iframes, except that it usually requires you to rename pages to .shtml.