You are asking how you can put the code in one file, then reference it from multiple ssi scripts? Look up require. Hard-code the full absolute path to begin with, since relative paths in cgi are another challange.
—John
Comment on Re: Re: Re: Calling a subroutine and dispalying an image using ssi