PDA

View Full Version : enlightenment needed!


01-04-2001, 05:14 PM
Hi, i am using a bit of code that ed posted a few days ago, but it don't work :-(

The Code lets you include files into vB

I added this to my Global.php


$include_header = implode("", file("/www/root/header.php"));
$include_footer = implode("", file("/www/root/footer.php"));


In my header template, i put


$include_header


and in my footer template i put


$include_footer


When the page is loaded, the header and footer do not appear.

Can anyone see a problem?

01-04-2001, 07:27 PM
You're file calls have to be referenced as a web address (with http://). There are several other ways if you want to look around the PHP manual.