php redirects work. depends what you want to do. if you're using ebay, check out phpBay Pro and it does it all for you.
You can do it with a meta redirect page: <html> <head> <meta name = "robots" content = "noindex,nofollow"> <meta http-equiv='refresh' content='0; url=http://affiliateURLgoeshere.com'> </head> </html> Code (markup):
It does if you format your redirects correctly, for instance it could display as http://www.yourdomain.com/redirect/www.topdomainofaffiliateprogram.com in the status bar, and then people typically don't think that it is an affiliate link, just a regular redirect.
I just posted this the other day...but I'll post it again! There is a lot of speculation that having a lot of affiliate links on your page may hurt your SE rank, so it's a good idea to mask your links. I prefer using subdomains with php redirects. For instance, let's say you have a dating banner ad, but you want its link to be masked. You could create a subdomain called "dating" on your existing site (http://dating.yoursite.com) and then upload a php file in the subdomain directory with the following code: <? Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.YOURAFFILIATELINK.com" ); ?> PHP: Then you simply link the dating banner to http://dating.yoursite.com. That way your link looks clean, and there is no affiliate link to be found on your site. Even if the SE's are looking for php redirects (which I don't think they care about just yet), they will see it on your subdomain, which is technically considered a separate site, so it still won't affect your main site's rank.