PHP Classes

File: testads.php

Recommend this page to a friend!
  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: 19 years ago
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);
?>