Are you sure it is uid 0?  Unless your Apache is running as root it should
be getting uploaded as the web server uid id.  Use the
move_uploaded_file() function to move the file into place.

-Rasmus

On Wed, 11 Apr 2001, b0ld b0lb wrote:

> Hi,
>
> if i upload via http the tempfile is written with uid 0 (root). After that i
> cant do anything with the file because the php user is not allowed to. Why
> is my uploaded file owned by root, and how do i solve that?
>
> PS. phpinfo shows that the apache user is nobody
>
> thx, b0ld
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to