I have used this php script in the past on several web hosts and have had no problems.
Here it is
Replace affiliate link in database with:
It has worked fine when I upload the files to another web host but not when I use it where the site is now.
I have contacted my hosting company but because I have a VPS server I need to install ???? I have cpanel access but not sure what I would need.
Any help would be greatly appreciated.