Just a follow-up for the newbies... and a question for the PROS... if you were following the thread... it suggested to move your main files to the root and within an ADMIn folder...
Works great for the PHP files in the root but your sub-folders don't work... cuz of the GLOBAL.php bombing out when it can't find the right paths...
here's the scenario...
Root
- <folder1>
- index.php
- <folder2>
index.php
global.php
both index.php files contain the following:
the root index.php contains
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...
Unless my syntax is incorrect.. 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