PDA

View Full Version : import global.php from another dir blues


doron
Mon 11th Sep '00, 12:01pm
I'm trying to access global.php for a program I wrote. vB is in /forums, the script is in /test.

This gives me the error:

Fatal error: Failed opening required 'admin/config.php' in /xelitecaraudio/www/forums/global.php on line 29

If I hack a global.php with the correct root and incude that, I get:

Fatal error: DB_Sql_vb is not a class in global.php on line 39

Anyone know what I am doing wrong?

TechTalk
Thu 14th Sep '00, 1:56pm
Try changing to the directory before including the file


chdir("/full/path/to/admin");


~Chris