gnope php gtk gui gnope.org  

Universal ${HOME} ?

 
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox
View previous topic :: View next topic  
Author Message
CoryChristison



Joined: 18 Dec 2005
Posts: 9

PostPosted: Wed Jan 04, 2006 1:51 am    Post subject: Universal ${HOME} ? Reply with quote

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

PostPosted: Wed Jan 04, 2006 11:20 am    Post subject: Re: Universal ${HOME} ? Reply with quote

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

PostPosted: Thu Jan 05, 2006 6:18 am    Post subject: Reply with quote

Great!

Thank you very much.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Tue Mar 21, 2006 2:33 pm    Post subject: Reply with quote

The package is in PEAR now, that means it's one of the Gold Standard PHP classes :)
http://pear.php.net/package/System_Folders/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Chatterbox All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.