Log in

View Full Version : How do I get phpinclude_start to work


beachgrrl
06-16-2005, 03:09 PM
I am trying to include a separate file in the header. I have added to phpinclude_start:

ob_start();
include(/public/forum/forumheader.php);
$my_header = ob_get_contents();
ob_end_clean();

and added $my_header to the header template. I have tried the absolute path as above and also the server path but either way, nothing is output. It looks like it is not finding the file. Any ideas what I might be doing wrong - this is my first time setting up a vBulletin board.

Andreas
06-16-2005, 03:19 PM
ob_start();
include('/absolute/path/to/forumheader.php');
$my_header = ob_get_contents();
ob_end_clean();


Then you should be able to use $my_header in Template header.

beachgrrl
06-16-2005, 03:57 PM
That works now! I was missing the quotes, I must have accidentally deleted them at some point. Thank you so much!