| View previous topic :: View next topic |
| Author |
Message |
CoryChristison
Joined: 18 Dec 2005 Posts: 9
|
Posted: Wed Jan 04, 2006 1:51 am Post subject: Universal ${HOME} ? |
|
|
Hello,
I am not sure how to find the home path of the current user across all operating systems.
Linux == $_SERVER['HOME']
Windows == $_SERVER['USERPROFILE']
Mac == ????
Any help?
Thank you in advance. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Wed Jan 04, 2006 11:20 am Post subject: Re: Universal ${HOME} ? |
|
|
| CoryChristison wrote: | | I am not sure how to find the home path of the current user across all operating systems. |
I made a class which does exactly this:
http://cweiske.de/pear.htm
look at System_Folders |
|
| Back to top |
|
 |
CoryChristison
Joined: 18 Dec 2005 Posts: 9
|
Posted: Thu Jan 05, 2006 6:18 am Post subject: |
|
|
Great!
Thank you very much. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
|
| Back to top |
|
 |
|