Login   Register  
PHP Classes
elePHPant
Icontem

File: testads.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gobinath Mallaiyan  >  AD Rotator using PHPAdsNew  >  testads.php  >  Download  
File: testads.php
Role: Example script
Content type: text/plain
Description: Sample Script
Class: AD Rotator using PHPAdsNew
Use PHPAdsNew to serve rotating advertisements
Author: By
Last change:
Date: 2005-02-07 00:45
Size: 282 bytes
 

Contents

Class file image Download
<?PHP
include_once("PHPAdsModule.class.php");
$DocumentURL "/siteadmin/ads/phpadsnew.inc.php";
$CampaignID=2;
$target="_blank";
$MaxAds=3;
$Style "<br>";
$Ads = new PHPAdsModule($DocumentURL,$CampaignID,$target,$MaxAds);
$Ads->GetBanner();
$Ads->DisplayAds($Style);
?>