PDA

View Full Version : Loading global.php to non-vb file


007
12-15-2008, 02:20 PM
I'm trying to load global.php into a directory a few levels up.

i.e. domain.com/a/b/c/d/file.php

What is the correct syntax to use for the line of code to include global.php into file.php assuming global.php is in the root directory?

Lynne
12-15-2008, 02:23 PM
chdir('/path/to/your/forums');
require_once('./global.php');

007
12-15-2008, 02:28 PM
Edit: Nevermind. Got it.

Thanks!