Hi, I'm planning to pay some webmasters to show text link ads. As I want to change these links from time to time and don't want to email every webmaster to change them, I thought about this: I ask the webmaster who shows the ad to insert the following code <?php include("http://www.mydomain.tld/textlinkads.txt"); ?> Code (markup): So I can change the links whenever I want and he has no work with it. Do you regard this as a good idea? Or do you have better ideas? Vincent
It's a good idea but it'd be better to have your advertisers use client-side code like Javascript or iframes, this way PHP won't be a requirement and your advertisers won't have to worry about your PHP code causing trouble on their websites.
You can also use a .JS file to display your ads using javascript as mentioned above.(In case you don't want to use IFRAMES)
If it was my website I wouldn't agree to including code from another site. It gives you control over the content on another site. How would they know you wouldn't alter the advert to some porn link? And yes, don't use JS or iframes for this.
Regarding the PHP option, keep in mind that some hosts turn off 'allow_url_fopen' which would disallow includes or fileopens over http.