View Single Post
Old 01-31-2011, 08:34 AM  
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
Quote:
Originally Posted by selena View Post
The way that I do it is really easy.

Say you create a php file called tonylinks and put it on your server.

Code:
<?php 

$path = array( 

"paysitename1" => "http://www.actual-link-code",
"paysitename2" => "http://www.actual-link-code"

); 

if (array_key_exists($_GET["id"], $path)) 
    header("location: " . $path[$_GET["id"]]); 

?>
You can add as many lines with variables to it as you want, just make sure that the last one does not have a comma after it.

Imagining that you had placed the tonylinks.php file in your www.hotchicks.com directory, then when you want to link to Paysite #1, your link would be

http://www.hotchicks.com/tonylinks.php?id=paysitename1

If you ever need to redirect the traffic to someplace else, just change the actual link code in the php file.
nice tip thanks
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote