Re: [PHP]: permission problem www-data

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

 



Hi Ash,

I have tried to use chown but i am getting the error
Warning: chown() [function.chown]: Operation not permitted

I would like to know why the apache(www-data)  owns the file rather than
the user (me).

Thanks.

On Tue, Jan 18, 2011 at 11:53 AM, ash@xxxxxxxxxxxxxxxxxxxx <
ash@xxxxxxxxxxxxxxxxxxxx> wrote:

> you could use the chown method in php, which should do what you need.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
> ----- Reply message -----
> From: "Moses" <jamuah@xxxxxxxxx>
> Date: Tue, Jan 18, 2011 09:44
> Subject:  [PHP]: permission problem www-data
> To: <php-general@xxxxxxxxxxxxx>
>
>
> Hi Everyone,
>
> I am creating a file in PHP script which takes a value from a form and
> writes it
> to a file. However, i don't have the mode permission for the file instead
> it
> is owned
> by www-data.What can i do to ensure that the file is owned by me.
>
>
> drwxr-xr-x 2 www-data www-data 4096 2011-01-17 22:01 18757170111.0
> -rw-r--r-- 1 www-data www-data   40 2011-01-17 23:39 32238.hydro
>
> Thanks.
>
>
>

[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