Advertising on Multiple Websites with PHP
Posted: Fri Nov 19, 2004 11:48 pm
Hey there,
I'm wanting to set up a network of websites that displays the same advertising banners on each website... However, I don't want to have to update each site if I have 10 different banners to add, remove etc all the time.
What would be the best way to draw advertisements from one site, and display it on the other websites using PHP and MySQL (if needed). Could I use:
Would that load fast enough?
Or maybe Iframes would work...
What would you sugegst?
I'm wanting to set up a network of websites that displays the same advertising banners on each website... However, I don't want to have to update each site if I have 10 different banners to add, remove etc all the time.
What would be the best way to draw advertisements from one site, and display it on the other websites using PHP and MySQL (if needed). Could I use:
Code: Select all
$lines = file('http://www.domain.com/ads.php');
foreach ($lines as $line_num => $line) {
echo $line;
}Would that load fast enough?
Or maybe Iframes would work...
What would you sugegst?