Quote:
Originally Posted by tamarian
Sid, this may be a problem of not including global.php You are including it, but the path may be wrong, as it will depend on where your test.php file exist. Try running it in your main forum home first, and remove that '/forum/' directory from the path.
|
Yes, this is what I think is happening. I do know that global.php exists in my /forums directory because if I try
http://www.bostonlove.org/forums/global.php it comes up and says
Code:
Critical Error
global.php must not be called directly.
This is very odd. I will try to run it in the same directory as global.php without any path in that line and see what happens.
- Sid
If I move it into the same folder as global.php it suddenly works!
I think I'll just leave it there! Thank you very much for your help.
But, for future reference, can you explain to me why this is happening?
Should I change that line to a relative path?
[php]<? require_once('../global.php'); ?>- Sid