Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 4, 2008, 9:49 pm
rate this thread
I used __FILE__ to get the path of a "config.php" file sitting in the
document root, pulled off the file name, and got...
OK, I used that to define $web_root and then used that car to try and
REQUIRE other file.
I kept getting FILE CAN NOT BE FOUND errors.
I build the path by hand...
$web_root = '\[mount_vol_name]\dir\path\to\web\';
then I did this...
$web_root = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR .
'[mount_vol_name' . DIRECTORY_SEPARATOR .
'dir' . DIRECTORY_SEPARATOR .
'path' . DIRECTORY_SEPARATOR .
'to' . DIRECTORY_SEPARATOR .
And this worked!!
Not really what I want to do!
I really would like an automated way to do this.
Anyone have any ideas?
PS: besides to use linux and/or apache?