![]() |
I use this code for including header.php page in my vb.
PHP Code:
PHP Code:
|
PHP Code:
|
It gives me this error:
Fatal error: Call to undefined function: ob_clean() in C:\Inetpub\wwwroot\Forum\global.php(275) : eval()'d code on line 9 just a little more help plz ? :) |
Oh ok, I just noticed that function in not yet in tje PHP release. :) Sorry.
Use this: PHP Code:
|
number 1 firefly :up:
|
why do we have to use ob things?
|
OB = Output Buffering.
Because when you include a file, what it outputs is also output on the including page, and we don't want that, because we want to USE what it output as a variable later in the templates. So we use output control to 'capture' the output of that file and store it inside a variable. |
All times are GMT. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|