For newbies only, Yes, this affiliate link cloaking code in php is always very useful in some cases, but with the new automatic cloaker that the new Clickbank Interface offer, there is no need to use it to avoid your product's link being ripped off. This was the code: <?php $tid = $_GET['tid']; header("Location: http://YourID.YourProduct.hop.clickbank.net/?tid=$tid"); ?> Code (markup): With this code, you will be able to store the file in your website and transmit a tracking ID through it. This can work with other affiliate links but remember you can't use it directly with a PPC campaign or you could be "Google slaped" You need to paste the code in your landing page or squeeze page, whatever you use. Have a great online session.
Why to use PHP if you can use meta refresh ( HTML redirect ) ? That's funny how peoples are trying to help others - by suggesting the "coolest" way, not the easiest one ! Meta refresh, PHP curl, etc. - tons of easy ways to hide your link.