> <? > echo $_SERVER["DOCUMENT_ROOT"]; > ?>
c:/wwwroot is what I get. I am convinced the problem I am having is due to some issues with configuration. Here is why: I found the script that is the 'original' one that I had working just as an image displayer - not as part of a larger html document and it works at the root of the web server. I've attached that code. Here's the thing - the script is identical, with two exceptions.. a) it is executing from the server root and b) the is just a regular path without the $DOCUMENT_ROOT in there. It looks (and it works) like this: $strRealPath = "images/random_gen/"; //$DOCUMENT_ROOT.dirname($SCRIPT_NAME)."/"; I cloned this script and renamed it, then changed "images/random_gen/" to: "$DOCUMENT_ROOT/images/random_gen/" and guess what? I guess the EXACT same errors. It has to be something to do with where apache or php thinks the root of the server is located... since the script that is integrated into the site is down a level in the /includes/ subfolder and it points to images in the DOCUMENT_ROOT/images/random_gen/ subfolder, I really needed the script to just say 'okay go to the root of the server then go to this subfolder and look there.' It ain't working. SOooooo.... basically I have some sort of configuration issue here. I've tried modifying httpd.conf - it supposedly wants the documentRoot to be set to c:/wwwroot instead of the normal c:\wwwroot... I've tried it both ways. the doc_root= setting in php.ini is set to c:\wwwroot and I've tried it both ways. Please help. I will dance at your wedding. Anybody.... Buehler? Buehler? -=- christopher -=- christopher
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php