Ok.. my dilema that no one answered correctly on vbulletin is this... i want to use the global.php file from vbulletin so i can use the vb variables, session info... etc... but this file is in my forum sub-folder... and gives me problems when i try to include it from a non-vb page (outside of the forum folder)
It has been suggested to move my main files to the root and within an ADMIn folder... but that only works with my php files on the root... it appears that the global.php file bombs cuz of an invalid path.... and it shows a blank screen...
here's the structure..
Root
index.php
global.php
<admin>
- session.php
- etc
<forum>
- global.php
--><admin>
--- session.php
<folder1>
- index.php
<folder2>
- index.php
both index.php files contain the following:
quote:
<?php require(getenv('DOCUMENT_ROOT').'/global.php')
?>
the root index.php works fine (can echo vb variables) but the index.php within the sub-folder(folder1) does not work and gives me a blank page... and the above environment variable gives you the absolute path...
Please let me know what I should be doing different... i have other subfolders that I would have php files that use the global.php... I think i even tried editting the global.php file to include the absolute paths int the file...
Thanx