Forum Moderators: coopster
When trying to get the script to work in Windows, a bunch of weird stuff happens.
$_SERVER['DOCUMENT_ROOT'] is available, but it comes out all-lowercase, and without the spaces transformed to whatever it is that windows uses as a symbol for spaces. So I get something like:
c:/program files/apache group/apache/htdocs
for this value, when actually a number of those letters are uppercased. Since the spaces aren't taken care of, in an .htaccess file, this line is interpreted so as to mean a number of different values since htaccess values are space-separated. Anybody know how to get the document root, with uppercase stuff intact (I suppose windows will be case-sensitive when it comes to including files), and with the spaces taken care of? I don't need the value just to install on this box - I need to get it from the $_SERVER array or with ini_get so the script can be installed automatically.
The way you described it, I was expecting to see lowercase in the variable. Nope. Not in any of the vars dumped via Apache nor PHP. Must get it from the OS somehow?
Nothing to offer here, mincklerstraat, just something to ponder :-)
Thanks for the thoughts and advice, much appreciated.
I think I'll take Jam's word for it on where this value comes from; at any rate, things seem to work by getting it from $_SERVER['DOCUMENT_ROOT'] even though this is all lowercase and with spaces (just as long as you enclose the value in double quotes). You people sure know your windows platform better than I do. Trying to install on windows revealed that there was stuff I'd left out of the install script altogether so I'm back to a more comfortable OS to patch things up, but I'll return when I surely flub up on other windows issues with this script ;) When I'm back in windows I'll try to figure out where this weird value in lowercase came from and let you all know. At any rate, it was just a standard install of Apache 1 from apache.org and php from php.net, no special install package like xamp.