Jim, Try it and find out ;) just do a simple echo of that and you find it does what it says it returns the path to the document root of ur sever ie where the page is located on the machine.
Cheers Peter -----Original Message----- From: Jim lucas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 June 2002 10:13 AM To: Lazor, Ed; 'Shane Wright'; [EMAIL PROTECTED] Subject: Re: [PHP] get pwd on windows what does $GLOBALS['DOCUMENT_ROOT'] return? Jim Lucas ----- Original Message ----- From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "'Shane Wright'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 4:35 PM Subject: RE: [PHP] get pwd on windows > Will getcwd() work for you? > > Also, try phpinfo() to find out which variables are set. > > -----Original Message----- > From: Shane Wright [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 10:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP] get pwd on windows > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi > > Ok, I need to write this little script to run on a Windows box (don't > ask...), > but I'm getting completely shafted by the inconsistent use of long > filenames. > > I need to get the current directory, but it must have long filenames and not > > be chopped to xxx~1 or anything. $SCRIPT_FILENAME is not set, there is no > pwd utility, nothing is set in the environment and realpath('./') returns > cropped firectory names. > > Is there a way to do this or am I condemned to bang my head against a wall > and > swear some more? > > Cheers > > - -- > Shane > http://www.shanewright.co.uk/ > Public key: http://www.shanewright.co.uk/files/public_key.asc > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE9Bjcw5DXg6dCMBrQRAjjbAJ4iz2jRJ5rMzkV7Md5GHpTd3YcX1wCfZb6B > 44Qwj0u6jdfNpGtf+LTEX+w= > =HgUp > -----END PGP SIGNATURE----- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > **************************************************************************** > This message is intended for the sole use of the individual and entity to > whom it is addressed, and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are > not the intended addressee, nor authorized to receive for the intended > addressee, you are hereby notified that you may not use, copy, disclose or > distribute to anyone the message or any information contained in the > message. If you have received this message in error, please immediately > advise the sender by reply email and delete the message. Thank you very > much. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php