Re: "/home/{user}/directory"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/3/17 George Larson <george.g.larson@xxxxxxxxx>

> In my scripts, I usually define a boolean constant DEBUG.  True looks for
> local copies of includes and echoes queries as they're used.
>
> My question is:
>
> Is there any way for me to reflect the actual home folder of the person
> running the script?  So it will be "/home/george/foo" when I run it but,
> for
> another user, it would be "/home/their-username/foo"?


$dir = realpath('~/foo');

-Stuart

-- 
http://stut.net/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux