I made this to distribute codes for the press, but it could be also useful for giveaways etc. http://ivica.stribor.de/stuff/dispenser/promocode.php
I appreciate it very much if you give credit to Sponge Forge http://www.spongeforge.com/ But if there is a reason to keep the layuot clean, no problem if you don't. It's free for use of any kind. ;-)
Does someone here has experience with synchronizing code blocks in php? The current version of the dispenser has small concurrency problems when under heavy load. It is not that dramatical, but would like to fix it.