My coding knowledge is small so this may be a simple question... appreciate any replies.
I have a php code to rotate 3 banners based on IP address (if US show this, if UK so that, else show something else).
I want to use this code across 10+ sites.
I would like to save the code on one site and then use something like an include code on all other sites, this way if I want to change the banners I just need to edit one file and everything else updates automatically.
That's my question, can I do this, or will I have trouble using something like include when it references a file located on a different domain/server.
I have a php code to rotate 3 banners based on IP address (if US show this, if UK so that, else show something else).
I want to use this code across 10+ sites.
I would like to save the code on one site and then use something like an include code on all other sites, this way if I want to change the banners I just need to edit one file and everything else updates automatically.
That's my question, can I do this, or will I have trouble using something like include when it references a file located on a different domain/server.