problems with integrating phpAdsNew into vb3
i'm trying to add this code into the header template of vb3.x
<?php
if (@include(getenv('DOCUMENT_ROOT').'/adverts/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '_blank', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
but i got this error,
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/httpd/hosting/mydomain.com/includes/adminfunctions_template.php(3037) : eval()'d code on line 36
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
i tried also adding it without the <?php ?> tags
but still got error
this the code is generated by phpadsnew ad management script
|