| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 ( ◣_◢ ) 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2007 
				Location: USA 
				
				
					Posts: 509
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				Are you any good with PHP?
			 
			I'm using a Geo Targeting script that was shared here a while ago. I've had some changes made to it to rotate the Tier1 URLs and split my AU, CA, UK, US traffic up between 2 separate affiliate links. 
		
	
		
		
		
		
			What I would like to do is also split up my Tier2 (foreign ) traffic the same way so I can send it to a couple different programs too. I've been messing with it for a while now but can't seem to get it to work. Would any PHP coders mind having a look at it and showing me the best way to accomplish this? Thanks in advance ;) PHP Code: 
	
			
	
				__________________ 
		
		
		
		
	
	My CashCrate Referrals Netting Me $1200 Monthly On Auto-Pilot  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2010 
				
				
				
					Posts: 1,111
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 there you go, i have removed those ' things from the second header part.. 
		
	
		
		
		
		
			so, instead of header ('Location: '. $destination_list[$key] .'); we just use header ('Location: ' . $destination_list[$key]); PHP Code: 
	
			
	regards 
				__________________ 
		
		
		
		
	
	php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 ( ◣_◢ ) 
			
		
			
			
			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: 
	
			
	
				__________________ 
		
		
		
		
	
	My CashCrate Referrals Netting Me $1200 Monthly On Auto-Pilot  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2010 
				
				
				
					Posts: 1,111
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 oh well, the code actually works, however it gets a RANDOM number, not 50-50%... 
		
	
		
		
		
		
			PHP Code: 
	
			
	
				__________________ 
		
		
		
		
	
	php, html, jquery, javascript, wordpress - contact me at contact at zerovic.com  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Too lazy to set a custom title 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2005 
				Location: Springfield 
				
				
					Posts: 13,826
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 better get maxmind geoIP... 
		
	
		
		
		
		
			it will perform better than pulling the country from other site... 
				__________________ 
		
		
		
		
	
	Make a bank with Chaturbate - the best selling webcam program        Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:  
			 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: May 2002 
				Location: Toronto, Canada 
				
				
					Posts: 5,599
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 What he has might work for a few hits but once you get serious traffic it'll fail.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 ( ◣_◢ ) 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2007 
				Location: USA 
				
				
					Posts: 509
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 I'm sure there are much better ways to do it but I didn't really see any reason to change it thus far (other than to try and split the foreign traffic up that is). 
				__________________ 
		
		
		
		
	
	My CashCrate Referrals Netting Me $1200 Monthly On Auto-Pilot  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |