may be better to use the local mode code
Code: Select all
<?php
//<!--/*
*
* Revive Adserver Local Mode Tag
* - Generated with Revive Adserver v3.2.1
*
*/-->
// The MAX_PATH below should point to the base of your Revive Adserver installation
define('MAX_PATH', '/var/www/vhosts/kiteboarder.co.uk/httpdocs/revive');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
// function view_local($what, $zoneid=0, $campaignid=0, $bannerid=0, $target='', $source='', $withtext='', $context='', $charset='')
$phpAds_raw = view_local('', 1, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>