View Single Post
Old 12-20-2003, 08:20 AM  
frippeno
Confirmed User
 
Join Date: Oct 2002
Location: Addison, TX
Posts: 133
Quote:
Originally posted by AcidMax
This is really quite simple actually. You use GeoIP from maxmind to get the country based on the ip, the db is on your server and GeoIP is pretty fast. From there you use ImageMagick (or GD) to create a banner with the text and country you want. If the banner doesnt exist you create it and wirte it out to something like US.jpg. If it does exist, serve the already existing banner. Once the banners are all made server load is extremely low and should not be a problem even on a high traffic site.

Andy
I agree, but why bother with graphics? That banner, and actually banners that look a lot more interesting, can be easily done with an html table. That's how I'd do it...
__________________
it only took one brick to make that window drop
frippeno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote