Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Feb 2002, 13:17
Rostor Rostor is offline
 
Join Date: Nov 2001
Phpinclude Template

I use this code for including header.php page in my vb.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now I need to include another page swzfooter.php in my vb index, I try some code like this :


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but it doesn't works any idea ?
Reply With Quote
  #2  
Old 05 Feb 2002, 19:40
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

(using ob_clean() to clear the buffer before requiring another file...)
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #3  
Old 05 Feb 2002, 19:48
Rostor Rostor is offline
 
Join Date: Nov 2001
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 ?
Reply With Quote
  #4  
Old 05 Feb 2002, 19:51
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Oh ok, I just noticed that function in not yet in tje PHP release. Sorry.

Use this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #5  
Old 05 Feb 2002, 20:26
badr511 badr511 is offline
 
Join Date: Dec 2001
number 1 firefly
Reply With Quote
  #6  
Old 05 Feb 2002, 22:55
XiXora's Avatar
XiXora XiXora is offline
 
Join Date: Nov 2001
why do we have to use ob things?
Reply With Quote
  #7  
Old 06 Feb 2002, 07:29
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 23:17.

Layout Options | Width: Wide Color: