who can answer this one? - how to bring an image on a page like a banner rotator does?

They have: 1,587 posts

Joined: Mar 1999

hello:

i'm trying to make a simple ad tracker for my site. therefore, how do i write the part of the script that will put the banner on an existing html page by the script being called from a <img src) tag, like webadverts and all the other ad rotators do? i've tried everything i can think of and just get a broken image.

thanks in advance for the help Smiling

----------
Isn't it time you started making money with your site!
http://www.birminghamnet.com/cgi-bin/links/pages/WebmasterResources/MakingMoney

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 453 posts

Joined: Jan 1999

Hi,
seems polpus was faster this time.

He's absolutly right.

DON'T serve the image directly via the cgi. That will increase
your server-load dramatically and will you get surely kicked if you have a cheap host.

btw:
This way the "location" can even be cached by the browser.

ciao
Anti

They have: 29 posts

Joined: May 1999

I'm just a newbie, so I have no idea. But when I'm trying to make something and I have no clue how to do it, I download a script that does what I want to do and study it.

I usually try to find a small script because they are a lot easier to study and figure out what's going on.

----------
Webmasters-Pub: A Webmasters Guide to Success
http://www.webmasters-pub.com

They have: 5,633 posts

Joined: Jan 1970

Fairhousing:

Just make the script redirect to the image url. Example code:

$url = "http://www.yourdomain.com/image.gif";
print "Location: $url\n\n";

Regards,
Federico

----------
UBBdir.com -- Find the internet's best forums
WDresources.com -- Resources for the web developer

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.