vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   include php file in the header (https://vborg.vbsupport.ru/showthread.php?t=39707)

werwer 06-10-2002 11:53 PM

include php file in the header
 
Hi all

I'm trying to include a php file in my header template (vb 2.5)
but afer i add the include nothing happen...

I've been told to include the file in phpinclude template, I did the following:

$var = include 'file.php';

and wanted to add the $var into my header but the file is included everywhere even befor I put the $var in the header and after the file included an error msg is generated and nothing else apperes!

What is wrong with this method of including files! plz help me get throug this

thanx a lot

Admin 06-11-2002 09:57 AM

Look at the original phpinclude template, it has instructions for doing just that.

WebMasterAJ 07-24-2002 12:25 PM

I have a quick question:

How would you include two php files?

I've added one:
ob_start();
require('http://www.finheaven.com/ssi/header.shtml');
$score = ob_get_contents();
ob_end_clean();

But I am not sure how you would add two... please let me know.

Thanks for your time.

werwer 07-24-2002 02:40 PM

hi
just add the code:
ob_start();
require('http://www.finheaven.com/ssi/header.shtml');
$score = ob_get_contents();
ob_end_clean();

ans many times as you want! in each section modyfy the file to include!

good luck


All times are GMT. The time now is 03:15 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
  • Page Generation 0.01757 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete