Gossamer Forum
Home : Products : Links 2.0 : Customization :

Links w/rotating banners? help!

Quote Reply
Links w/rotating banners? help!
I would like to include rotating banners in my links pages by use of a server side include, in place of the static banner. I know I have to change my page extensions to .shtml, which isn't a problem, but I am getting errors building the pages after including the SSI code: <!--#exec cgi="/~www/slc/advertise/ad.cgi"-->

Here is the error:
Content-type: text/plain
Error including libraries: syntax error at /home/www/public_html/cgi-local/links/admin/site_html.pl line 147, near "<!--#exec cgi="/~www/slc/advertise/ad.cgi"-->

I realize it is a syntax error, but what? how to fix?

thanks!
Quote Reply
Re: Links w/rotating banners? help! In reply to
Mark I posted a question about the NON SSI part of Web Adverts and using with Links.

Any feedback on that?
Quote Reply
Re: Links w/rotating banners? help! In reply to
Hard to say without seeing the rest of your code, but my guess is that the actual error is in here:

<!--#exec cgi="/~www/slc/advertise/ad.cgi"-->

Because you have "~www" in there, perl is probably interpreting the "~" as the end deliminater or the print qq~ statement, so the remainder of the SSI call is causing an error since it isn't valid perl.

If this is the case, in the routine you are in, change the deliminater to something other than "~"

for example

print qq|

*all of your html stuff*

|;

Does that help?

--Mark

------------------
You can reach me by ICQ at UIN #8602162