PDA

View Full Version : Easy Page Updating


UnkieB
02-24-2004, 03:44 PM
Hi,

I'm looking for a way to easily update parts of a large number of web pages quickly.

For instance, let's say I have 200 pages that all have old copyright information. I'd like to be able to update them all easily and quickly all at once with the new information, rather than having to edit each and every individual page and then reupload them to the server.

Is there a way to put a tag or script or something in an html page so that a part of the page (or even all of it, I guess) could be pulled from a single source file. In the case of the copyright example, you could have a file called copyright.??? and any page with a "link" to that file would show whatever was in the copyright.??? file.

Is this possible?

Thanks!

Josh
02-24-2004, 06:15 PM
Yep, SSI or php includes.

Search the forums for either

schnitzel_21st
02-24-2004, 11:37 PM
try

http://www.htmlforums.com/showthread.php?s=&threadid=25590

UnkieB
02-25-2004, 12:01 PM
Thanks. I found that right after I posted.

I can't find anything on using PHP though. Is there a PHP tag that can be used like the SSI tag?

Willy Duitt
02-25-2004, 12:21 PM
<!-- #include virtual="/includes/header.php" -->
(where the file is located relative to the root web directory)

<!-- #include file="../includes/header.php" -->
(where the file is relative to its current directory)

.....Willy

UnkieB
02-25-2004, 12:22 PM
Thanks!

Willy Duitt
02-25-2004, 01:18 PM
Originally posted by UnkieB
Thanks!

Your Welcome :D

.....Willy

Josh
02-25-2004, 03:34 PM
http://www.htmlforums.com/showthread.php?s=&threadid=32364

there ya go :D