vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   yourheader.html wont update (https://vborg.vbsupport.ru/showthread.php?t=67602)

kkiely 07-25-2004 02:31 AM

yourheader.html wont update
 
I have the following to create a menu around all my VB pages

// Example of how to include a seperate file:
// ob_start();
// require("yourheader.html");
// $header = ob_get_contents();
// ob_end_clean();
ob_start();
require("yourheader.htm");
$header_code = ob_get_contents();
ob_end_clean();

but when I update my yourheader.html file it doesn't update on my page? why is this?

if i delete the header file altogether then nothing bad happens. I am thinking that the code from the header file must be stored somewhere the first time it is read.

and if i try to create a second file (i.e. yourheader2) and link to that i get this error

Warning: Unknown(yourheader1.htm): failed to open stream: No such file or directory in /htdocs/vbforum/global.php(385) : eval()'d code on line 8

Fatal error: (null)(): Failed opening required 'yourheader1.htm' (include_path='.:/usr/local/php4/lib/php') in /htdocs/vbforum/global.php(385) : eval()'d code on line 8

Xenon 07-25-2004 08:44 PM

Quote:

when I update my yourheader.html file
PHP Code:

require("yourheader.htm"); 

little typings are evil :)

kkiely 07-25-2004 09:00 PM

sorry, my html file is actually and htm file. If that is what you meant

Brad 07-26-2004 06:35 AM

Are you running some sort of php cache on that box?

kkiely 07-30-2004 02:27 AM

apparently it was supposed to be "require("./yourheader.htm"); "


All times are GMT. The time now is 07:36 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.01088 seconds
  • Memory Usage 1,718KB
  • 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)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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