Thanks for the reply, but I want to stay away from using js and only use php.
I'm still doing research on this and the one question that stands out to me is this :
www.mysite.com/script.php?id=product1 ... this seems as though, Google for example, might see this as cloaking as I am showing the above link, however, directing the user to another (affiliate link)... thoughts on this? As a webmaster I can see many reasons why the above would be beneficial to me (easily change sitewide links on one page, etc, etc), however, does Google see it that way? Some would say the fact I am questioning it means I should be leary of it.
I also have seen sites which use the same format above, however, their id value in this case IS the url they want to redirect to... in other words they are not hiding anything (which Google likes)...