Kickster,
I'm the author of AdvertPRO, notice you were trying to get it working in your CGI script. The best way to use remote.pl in a CGI script is to take the needed parts of remote.pl and put them in your CGI script.
You should do something such as follows:
# Load the LWP::Simple module.
use LWP::Simple;
# Use LWP::Simple to retrieve the banner.
$html = get("http://www.yoursite.com/cgi-bin/advertpro/banners.pl?region=NAME_OF_REGION&mode=SSI");
# If an error has occured, display this error message.
$html ||= "[an error occurred processing this request]";
# Display the ad banner.
print "$html\n\n";
Now, this requires you to have LWP::Simple installed, however that is a requirement of remote.pl so I'm sure that's not a problem. You will need to change the URL of banners.pl in the code above and also replace NAME_OF_REGION with the name of the region you want to display.
Hope that helps!
Sincerely,
Mike Cherichetti
http://www.advertpro.com
http://www.arc-s.com
I'm the author of AdvertPRO, notice you were trying to get it working in your CGI script. The best way to use remote.pl in a CGI script is to take the needed parts of remote.pl and put them in your CGI script.
You should do something such as follows:
# Load the LWP::Simple module.
use LWP::Simple;
# Use LWP::Simple to retrieve the banner.
$html = get("http://www.yoursite.com/cgi-bin/advertpro/banners.pl?region=NAME_OF_REGION&mode=SSI");
# If an error has occured, display this error message.
$html ||= "[an error occurred processing this request]";
# Display the ad banner.
print "$html\n\n";
Now, this requires you to have LWP::Simple installed, however that is a requirement of remote.pl so I'm sure that's not a problem. You will need to change the URL of banners.pl in the code above and also replace NAME_OF_REGION with the name of the region you want to display.
Hope that helps!
Sincerely,
Mike Cherichetti
http://www.advertpro.com
http://www.arc-s.com