Re: get pwd on windows
| From: | Jim lucas | Date: | Wed, 12 Jun 2002 00:13:24 +0000 |
| Subject: | Re: get pwd on windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101648@lists.php.net to get a copy of this message | ||
what does $GLOBALS['DOCUMENT_ROOT'] return?
Jim Lucas
----- Original Message -----
From: "Lazor, Ed" <ELazor@providence.org>
To: "'Shane Wright'" <me@shanewright.co.uk>;
<php-general@lists.php.net>
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:me@shanewright.co.uk]
> Sent: Tuesday, June 11, 2002 10:45 AM
> To: php-general@lists.php.net
> 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
>
>