Re: [PEPr] Proposal for System::System_Folders
| From: | Dan Rossi | Date: | Sun, 19 Feb 2006 00:50:00 +0000 |
| Subject: | Re: [PEPr] Proposal for System::System_Folders | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41408@lists.php.net to get a copy of this message | ||
Just to confirm on OSX its $USER to get the user and $HOME to get the users home directory.
On 19/02/2006, at 10:48 AM, Nicholas Costa wrote:
On Feb 17, 2006, at 3:50 PM, Christian Weiske wrote:That depends on which user you would like to select.Where do I get the user name from? Is there a $USER environment variable? If not, can I useHome: $HOME ( /Users/your_user_name )whoamito get the name?whoamiwill 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 -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php