When I insert this snippet:
into a template for vbulletin, I get this error when saving:
Should I ignore this or do I need to set the code apart using some sort of enclosing tags?
PHP Code:
<?php
if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:3', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/gunzfact/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 234
Comment