![]() |
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 |
Quote:
PHP Code:
|
sorry, my html file is actually and htm file. If that is what you meant
|
Are you running some sort of php cache on that box?
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|