hmmm i just figured out that i can not edit my previous post ... well however for the others tha thave the same problem as Neil does, here is the Cookiestuffer code that works with the randomizer and htaccess file:
Basically it is just the php code like:
<?
$random_number = rand(1,4);
if($random_number == 1){
echo "<img src='tracking_pixel.jpg' border='0' width='0px' />";
}
?>
in the hataccess you will have the following:
RewriteEngine On
RewriteRule tracking_pixel.jpg http://www.affiliate.com/BDHDHDHDJ/ [R,L]
However i would suggest that you insert the htaccess into a subflder called images. so the htaccess code is still the same but now the htaccess file is located into a subfolder called images. if you have done so change the first code to:
<?
$random_number = rand(1,4);
if($random_number == 1){
echo "<img src='img/tracking_pixel.jpg' border='0' width='0px' />";
}
?>
where img is the subfolder your htaccess file is in.
P.S. The File that you put the php code on needs to be *php file ;-)
If you want this code to work with html also you additionally need to put the following code into your htaccess file:
AddHandler application/x-httpd-php .html .htm .php
or the following one in case your server uses php5 already
AddHandler application/x-httpd-php5 .html .htm .php
cheers
catman