Hi,
I know there is alot of documentation on simulating ssi calls w/ web adverts. For example in the web adverts documentation he has this:
------------------------------------
sub insertadvert {
require "/full/path/to/ads_display.pl";
$adverts_dir = "/full/path/to/ads";
$display_cgi = "http://foo.com/ads/ads.pl";
$advertzone = "";
$ADVUseLocking = 1;
$ADVLogIP = 0;
$DefaultBanner = "";
$ADVNoPrint = 1;
&ADVsetup;
}
---------------------------
My question is referring to scripts in general. I have this very small script that inserts the content of a text file into certain specified areas of my site. I am customizing this recommend script to fit my site layout and I wanted to know what code or lines of code i should use to simulate the ssi call w/ this script. Is there a standard or does it depend on the script that i am calling.
If this is any help here is the script that i use to insert the contents of the text file:
-------------------------------------
#!/usr/local/bin/perl
{
&PlugIt;
}
sub PlugIt
{
$plugit="copyright.txt";
open (PLUG,$plugit) | | die "can't open $plugout";
$plugit="";
while (<PLUG> ){$plugit .=$_;}
close(PLUG);
print "Content-type: text/html\n\n";
print "$plugit";
}
1;
-----------------------------
thanks in advance.
I know there is alot of documentation on simulating ssi calls w/ web adverts. For example in the web adverts documentation he has this:
------------------------------------
sub insertadvert {
require "/full/path/to/ads_display.pl";
$adverts_dir = "/full/path/to/ads";
$display_cgi = "http://foo.com/ads/ads.pl";
$advertzone = "";
$ADVUseLocking = 1;
$ADVLogIP = 0;
$DefaultBanner = "";
$ADVNoPrint = 1;
&ADVsetup;
}
---------------------------
My question is referring to scripts in general. I have this very small script that inserts the content of a text file into certain specified areas of my site. I am customizing this recommend script to fit my site layout and I wanted to know what code or lines of code i should use to simulate the ssi call w/ this script. Is there a standard or does it depend on the script that i am calling.
If this is any help here is the script that i use to insert the contents of the text file:
-------------------------------------
#!/usr/local/bin/perl
{
&PlugIt;
}
sub PlugIt
{
$plugit="copyright.txt";
open (PLUG,$plugit) | | die "can't open $plugout";
$plugit="";
while (<PLUG> ){$plugit .=$_;}
close(PLUG);
print "Content-type: text/html\n\n";
print "$plugit";
}
1;
-----------------------------
thanks in advance.