Re: "/home/{user}/directory"
| From: | George Larson | Date: | Tue, 17 Mar 2009 13:56:43 +0000 |
| Subject: | Re: "/home/{user}/directory" | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290174@lists.php.net to get a copy of this message | ||
That is correct. PHP on CLI. Thanks!
On Tue, Mar 17, 2009 at 9:51 AM, Thiago H. Pojda <thiago.pojda@gmail.com>wrote:
> On Tue, Mar 17, 2009 at 10:42 AM, George Larson <george.g.larson@gmail.com
> > wrote:
>
>> 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"?
>>
>
> Just checking, you're running PHP on CLI then, right?
>
> If it's running on normal apache setup the user would always be the user
> which apache is running.
>
>
> Thiago Henrique Pojda
> http://nerdnaweb.blogspot DOT com
>
>