Re: PHP and permissions
| From: | Don | Date: | Wed, 13 Mar 2002 00:55:39 +0000 |
| Subject: | Re: PHP and permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88319@lists.php.net to get a copy of this message | ||
I did. That's why I'm confused. phpinfo() is telling me that the user is
myself (I don't see the group). So what is the "permission" difference
between running PHP and logging on to the server via telnet as myself?
> 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
>
>