Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: SSI integeration into CGI generated pages

Quote Reply
Re: SSI integeration into CGI generated pages In reply to
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

Subject Author Views Date
Thread SSI integeration into CGI generated pages kickster 7669 Aug 27, 2000, 2:33 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7538 Aug 27, 2000, 3:15 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7527 Aug 27, 2000, 6:20 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7547 Aug 27, 2000, 6:30 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7531 Aug 27, 2000, 6:41 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7540 Aug 27, 2000, 7:33 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7538 Aug 27, 2000, 7:50 PM
Thread Re: SSI integeration into CGI generated pages
sponge 7536 Aug 27, 2000, 8:32 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7546 Aug 27, 2000, 8:48 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7523 Aug 27, 2000, 9:20 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7470 Aug 28, 2000, 5:37 PM
Post Re: SSI integeration into CGI generated pages
Stealth 7440 Aug 28, 2000, 6:05 PM
Thread Re: SSI integeration into CGI generated pages
Jerry 7515 Aug 27, 2000, 11:01 PM
Thread Re: SSI integeration into CGI generated pages
kickster 7460 Aug 28, 2000, 7:45 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7455 Aug 28, 2000, 8:12 PM
Post Re: SSI integeration into CGI generated pages
kickster 7458 Aug 28, 2000, 8:24 PM
Thread Re: SSI integeration into CGI generated pages
sponge 7485 Aug 28, 2000, 9:38 PM
Thread Re: SSI integeration into CGI generated pages
Stealth 7451 Aug 28, 2000, 9:46 PM
Post Re: SSI integeration into CGI generated pages
ARCSxMike 7413 Aug 28, 2000, 10:45 PM
Thread Re: SSI integeration into CGI generated pages
Jerry 7430 Aug 29, 2000, 4:25 AM
Thread Re: SSI integeration into CGI generated pages
kickster 7430 Aug 29, 2000, 10:40 AM
Thread Re: SSI integeration into CGI generated pages
kickster 7405 Aug 29, 2000, 10:59 AM
Post Re: SSI integeration into CGI generated pages
act 7205 Jul 6, 2001, 8:50 AM
Thread Re: SSI integeration into CGI generated pages
scanreg 7439 Aug 28, 2000, 11:55 PM
Post Re: SSI integeration into CGI generated pages
Jerry 7402 Aug 29, 2000, 4:10 AM
Thread Re: SSI integeration into CGI generated pages
darkOne 1243 Jul 6, 2001, 5:56 PM
Post Re: SSI integeration into CGI generated pages
Stealth 1229 Jul 6, 2001, 6:16 PM