PDA

View Full Version : Cannot get parsed code to work!!!


kau
07-23-2002, 05:36 AM
Ok I have a simple script I want to run in my header like this:

require("config.inc.php3");
require("view.inc.php3");
require("acl.inc.php3");
view("468x60");

It will display a banner. However PHP no matter if it's in PHP tags or not will not parse in the Header box only in the PHP parsed code. However if I put that code in that box the banner just appears at the top of the screen and not where I want it.

How do I put PHP in my Header?

Admin
07-23-2002, 06:35 AM
Put that in the phpinclude template:
ob_start();
require('config.inc.php3');
require('view.inc.php3');
require('acl.inc.php3');
view('468x60');
$banner = ob_get_contents();
ob_end_clean();
And then use $banner in teh header template.