PHP & IIS
am 04.04.2008 23:49:57 von otrWalterDOCUMENT_ROOT does not exist on my friend IIS installation.
I used __FILE__ to get the path of a "config.php" file sitting in the
document root, pulled off the file name, and got...
\\[mount_vol_name]\dir\path\to\web\
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\';
same result.
then I did this...
$web_root = DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR .
'[mount_vol_name' . DIRECTORY_SEPARATOR .
'dir' . DIRECTORY_SEPARATOR .
'path' . DIRECTORY_SEPARATOR .
'to' . DIRECTORY_SEPARATOR .
'web';
And this worked!!
Not really what I want to do!
I really would like an automated way to do this.
Anyone have any ideas?
Walter
PS: besides to use linux and/or apache?