Topic: Problem with PHP in main.tpl; plz help

Hi everybody;

Im trying to integrate punbb to my web site; so I used this <pun_include "header.php"> and <pun_include "footer.php"> into the main.tpl .

But the problem is ; in my header.php has some others php functions also; for Menu and tool-bar it is; but seems like it doesnt work if I use  <pun_include "header.php"> ; even though the style is perfect. Unless all the menus are not working.

So do you know how to fix it please? Thanks a lot

Re: Problem with PHP in main.tpl; plz help

Can you give an example of how it looks and how it is supposed to look?

Re: Problem with PHP in main.tpl; plz help

Hi ; thx for your reply;
For example:
In my header has the code below:

<a href="<? echo MAIN_ROOT ?>index.php">Example</a>

It should output something like this: http://www.example.com/index.php but now it only output exactly like the code above ; means http://www.MAIN_ROOTindex.php

So now all the menu for the forum dont work sad

Re: Problem with PHP in main.tpl; plz help

where is MAIN_ROOT defined?

Re: Problem with PHP in main.tpl; plz help

<? define('MAIN_ROOT', '.././');?>

Re: Problem with PHP in main.tpl; plz help

In what page is what I meant

Re: Problem with PHP in main.tpl; plz help

in config.php but now it works after i define all the functions in that header page....

thanks for your reply