View Single Post
Old 2004-10-03, 04:37 AM   #4
Rorschach
Shut up brain, or I'll stab you with a Q-tip!
 
Rorschach's Avatar
 
Join Date: Nov 2003
Posts: 115
Assuming you're changing the links on a dynamically generated free hosted gallery, eg. you're changing the links on:
http://www.fhgdomain.com/fhg.php?id=cocksmoker

On fhg.php:

PHP Code:
<?php

// Extract the affiliate id from the url
$affiliate_id $_GET['id'];

// Insert the affiliate id into the sponsor code
$link_url "http://www.sponsordomain.com/clickthrough.php?id=$id";

// Print the modified url
print "<a href=\"$link_url\">Click here to check out this fucking amazing sponsor</a>";

?>
Rorschach is offline   Reply With Quote