Re: Banner Exchange Schema ??
| From: | Richard Lynch | Date: | Tue, 31 Jul 2001 05:27:02 +0000 |
| Subject: | Re: Banner Exchange Schema ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60335@lists.php.net to get a copy of this message | ||
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 richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
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 <jshoberg@cbd.net>
Newsgroups: php.general
To: Php-General@Lists. Php. Net <php-general@lists.php.net>
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
?
>