View Single Post
Old 05-23-2012, 02:47 AM  
X_X_ROB_X_X
( ◣_◢ )
 
Industry Role:
Join Date: Jun 2007
Location: USA
Posts: 509
After looking it over I'm not sure if this is doing what I need.

I'm basically wanting to have 2 URLs for Tier2 traffic too, then have it alternate the URLs for each visitor.

I'd like to give 50% of my foreign traffic to one link and the other 50% to another (just like the lower part of the code does)

PHP Code:
else {
        
$destination_list = array(
            
'http://www.Tier1-Affiliate-Link-1.com',
            
'http://www.Tier1-Affiliate-Link-2.com'
        
);

        
$key rand(0count($destination_list) - 1);
        
        
header ('Location: '$destination_list[$key] .''); 
X_X_ROB_X_X is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote