PDA

View Full Version : php code in header template


Konrad0
01-29-2004, 02:12 PM
i installed an ad rotation hack for my vbb 2.3.3 and finally i have to insert following code into the header template



<?
require('/home/www/web45/html/ad/ad_class.php');
echo $pla_class->adcode( );
?>



but it doenst work.. why? :(

on a normal PHP the code works.. can someone help me?

NTLDR
01-29-2004, 02:27 PM
The only template that can have real PHP is the phpinclude template. Note you don't need to use <?php and ?> in them.