sir,
Not sure what you are trying to accomplish here, but if you want to add PHP code to the main page you have to work a little to get it accomplished.
If you want to add PHP code then you have to use a different page as your main page. You need to use new file such as "newpage.php" and specify this in your settings for the application.
see: 'Example Setting'
Once you have this new file created you will need to follow 'this article' to enclose the content of the KBpublisher page.
Make sure you pay close attention to these steps:
'
Notes:
* You must be an administrator to do this
* If you prefer, you can set the Template Page to load field to the URL, i.e. http://www.your_domain.com/your_template.html, rather than to the full server path, i.e. /usr/www/html/ ..../your_template.html, if your PHP installation allows it. (On some PHP installations this option is not allowed).
* Using the URL for the template path (http://www.your_domain.com/your_template.html) cause extra lookups, which will may affect the performance a litte, hence we recommend that you use the server path name if you can.
* If you need to execute php in your template, use the full URL for the template path.
'
You can then place whatever PHP code you want in that "newpage.php" and it should work fine.
I hope that helps.
Best,
Shark