PDA

View Full Version : How to include a file?


DWZ
10-24-2002, 12:31 AM
I have a php file that I want as an include. can I just put in something likeinclude ('whatever/file.php');somewhere?

If so, which file do I put it in so no matter where you are on the forum, it's called? Im guessing global.php or functions.php... would that work?

Erwin
10-24-2002, 04:14 AM
Put it in global.php near the top (the one in the forum directory, not admin). But bear in mind that means that every page on your forum will have the additions of the number of queries of the included php file. :)

DWZ
10-26-2002, 01:28 AM
great, thanks :)