Gossamer Forum
Home : Products : DBMan : Installation :

Adding contents of text file...

Quote Reply
Adding contents of text file...
I use SSI on all my pages, and would like to include the contents of a header text file into my database's html.pl script. I have set up several different db's and use multiple html.pl scripts, so I want to be able to make changes to the text file, and have the changes appear in each of the db's. How to do this? Thanks in advance.

------------------
Steven Caponetto
www.whz.net

Quote Reply
Re: Adding contents of text file... In reply to
In html.pl:
Code:
$header = "/path/to/header/file/";
open(HEADER, "$header") | | die "Cannot open directory";
while (<HEADER> ) {
print @_;
}
close (HEADER);

chris@wfmy.com

------------------
WFMY-TV Webmaster

[This message has been edited by Chris071371 (edited November 06, 1999).]