Re: upload problem (uid)

From: Date: Tue, 10 Apr 2001 23:15:48 +0000
Subject: Re: upload problem (uid)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48099@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#48099) next »