Building an advertising system with PHP, Part 1(Page 1 out of 3)
In that case you must use some sort of advertising management script. The best one around, phpAdsNew, is completely free and can be downloaded at http://www.phpadsnew.com, but this might be slightly overkill for most websites, since phpAdsNew is a complete ad management application, packed with features you probably won't need anyway. Why don't we create our own simple advertising system?
First of all, point the script tag to a PHP file, like this:
Then paste the following in js1.php:
$time = date("g:i:s A", mktime());
echo "document.write ('The time is now $time');";
This simple example demonstrates that it's possible to use JS and PHP together to add dynamic content. The js1.php uses JS to output extra content, with can contain anything.
Let's have a look at creating a really bare-bones advertising system now.