Re: [PEPr] Proposal for System::System_Folders

From: Date: Sat, 18 Feb 2006 23:48:15 +0000
Subject: Re: [PEPr] Proposal for System::System_Folders
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-41407@lists.php.net to get a copy of this message
On Feb 17, 2006, at 3:50 PM, Christian Weiske wrote:
Home: $HOME ( /Users/your_user_name )
Where do I get the user name from? Is there a $USER environment variable? If not, can I use whoami to get the name?
That depends on which user you would like to select. whoami will not work, as it will return the short user name of the user running the PHP script, most likely "www" on a Mac, and you wouldn't find a user folder for them. Better would be to select a user *first* and then pick the most appropriate system folder.
Is there a difference between the "real name" like "Christian Weiske" and the "user name" like "cweiske"? Which one is used for the home dir?
The user name is a short name, not the full name. In your case, it would be /Users/cweiske . -- Nick

« previous php.pear.dev (#41407) next »