PDA

View Full Version : Why is this?


Logik
04-22-2003, 09:35 PM
Everytime i try to require global.php outside of forums dir. like this

require ('./forums/global.php');

I get this error

Warning: main(./admin/config.php) [function.main]: failed to create stream: No such file or directory in C:\Network\Apache2\htdocs\forums\global.php on line 129

MUG
04-22-2003, 09:38 PM
Use this instead:

chdir('./forums');
require('./global.php');

Logik
04-22-2003, 10:04 PM
Thanks alot. It worked. But i have another question. What is the file that i would have to require in order to get the username on a non-vb site?? I cant remember.

filburt1
04-22-2003, 10:20 PM
global.php.