in reply to Re: Calling a subroutine and dispalying an image using ssi
in thread Calling a subroutine and dispalying an image using ssi

I think you got what I was trying to say... I have a program uses the banner_rotator subroutine and displays the banner in a header.txt file as $banner. I am using a banner rotater right now that uses img tags OR ssi to display a random banner. I use this on all of my .htm files outside of my cgi-bin. I wan't to use the banner_rotator from my whatever.pl file so that I don't have to update two scripts when I add a new banner.
  • Comment on Re: Re: Calling a subroutine and dispalying an image using ssi

Replies are listed 'Best First'.
Re: Re: Re: Calling a subroutine and dispalying an image using ssi
by John M. Dlugosz (Monsignor) on Jul 08, 2001 at 00:28 UTC
    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