Re: get pwd on windows

From: Date: Tue, 11 Jun 2002 19:58:41 +0000
Subject: Re: get pwd on windows
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101604@lists.php.net to get a copy of this message
just use php to do it getcwd() Paul Roberts roberts_paul@bigfoot.com ++++++++++++++++++++++++ ----- Original Message ----- From: "Shane Wright" <me@shanewright.co.uk> To: <php-general@lists.php.net> Sent: Tuesday, June 11, 2002 6:45 PM 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

« previous php.general (#101604) next »