![]() |
Usergroup PHP conditional
I keep getting a Server Error when trying to implement this conditonal. Only way to recover is to comment out the conditional lines. Is there something wrong with this code?
Code:
require_once('/path/to/my/global.php'); |
I think the problem is the require line for global.php. Because of the way global.php is written, you need to do something like:
Code:
$savedir = getcwd (); Also, if your code is inside a function it causes other problems, because variables that are supposed to be global won't be. If that's true for you, you could solve that by declaring some other variables as global before including global.php (I can't remember which ones offhand). |
All times are GMT. The time now is 12:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|