Re: PHP and permissions
| From: | Jan Rademaker | Date: | Wed, 13 Mar 2002 08:14:15 +0000 |
| Subject: | Re: PHP and permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88302@lists.php.net to get a copy of this message | ||
On Tue, 12 Mar 2002, Don wrote:
use phpinfo() to find that out...
> Hi,
>
> I have a question about how PHP runs. I have a file on my FreeBSD server that is owned by
> another user but is the same group as myself. The file has read/write permissions for the user
> only. Therefore, when I log onto the server I cannot read or write to the file. In fact, I can not
> even FTP it.
>
> The funny thing is, I wrote a PHP script to read the file (it's actually a CSV file) into
> an array using the function fgetcsv and display the values within the browser. This worked.
>
> So my question is, what user is PHP run under that allows me to access another user's file
> (but the same group)?
>
> Thanks,
> Don
>
--
Jan Rademaker <janr@486.yi.org>
http://www.ottobak.com