Gossamer Forum
Home : General : Perl Programming :

Calling an image ...

Quote Reply
Calling an image ...
Hello,

This question has nothing to do with Gossamer-Threads great productions, but I think someone could help me, however.

How can I make a perl script, which would be called from another sites via <img>-tag.
I mean that some people can add to their own sites outside from my page the tag <img src=http://www.mydomain.net/gif.pl>, so that their pages would show an image, which is (for example) randomly choosed by my perl script.

What I need is the line in the gif.pl script.
Should it be
print "http://www.mydomain.net/myimages/1.gif"; ?
That doesn't work, when <img src=http://www.mydomain.net/gif.pl> is in html-page.

So what is the method, then?

Thanks for any help,
Marko
Quote Reply
Re: Calling an image ... In reply to
What you can do is look at some of the Banner Exchange and Advertisement scripts available through cgi-resources.com.

My recommendation is that you create a banner like script and then have other people link to the script in the similar manner that WebAdverts and other Banner Scripts have NON SSI links set-up.

Good luck.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------