![]() |
|
|
Thread Tools |
|
#1
|
||||||||
|
||||||||
|
Phpinclude Template
I use this code for including header.php page in my vb.
Now I need to include another page swzfooter.php in my vb index, I try some code like this :
but it doesn't works any idea ? No members have liked this post.
|
||||||||
|
#2
|
||||
|
||||
(using ob_clean() to clear the buffer before requiring another file...)
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||
|
#3
|
|||
|
|||
|
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 ? ![]() No members have liked this post.
|
|
#4
|
||||
|
||||
|
Oh ok, I just noticed that function in not yet in tje PHP release.
Sorry.Use this:
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
||||
|
#6
|
||||
|
||||
|
why do we have to use ob things?
No members have liked this post.
|
|
#7
|
||||
|
||||
|
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.
__________________
Chen Avinadav Formerly vBulletin.org Owner and Founder chen@avinadav.com No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 23:17.




