Where in the world does JavaScript come into it?...

http://yoursite.com/banner.php

----- file: banner.php ---------------
<?php
    # Use some formula to do a weighted random selection of a banner ID
    echo "<A HREF=http://yoursite.com/forward.php?ID=$ID><IMG
SRC=http://yoursite.com/image.php/whatever.jpg?ID=$ID></A>"
?>
---------------------------------------

----- file: forward.php ---------------
<?php
    # Lookup $ID->$URL in the database and update your click-through stats
for that $ID
    header("Location: $URL");
?>
---------------------------------------

----- file: image.php -----------------
<?php
    # Lookup $ID->$path in the database and update your display-ad stats for
that $ID
    header("Content-type: image/jpg");
    header("Content-length: " . filesize($path));
    readfile($path);
?>
---------------------------------------

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Jon Shoberg <[EMAIL PROTECTED]>
Newsgroups: php.general
To: Php-General@Lists. Php. Net <[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 10:32 PM
Subject: Banner Exchange Schema ??


>
>   In creating a banner exchange, anyone have thoughts on how the big boys
> use their javascript and server side coding to do the banner rotations?
I've
> look at a lto of examples but some concurrency issues arrise.  Anyone have
> thoughts on or seen 'research' on how the major networks get the job done
?
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to