Re: upload problem (uid)

From: Date: Wed, 11 Apr 2001 10:18:49 +0000
Subject: Re: upload problem (uid)
Groups: php.general 
Request: Send a blank email to php-general+get-48137@lists.php.net to get a copy of this message
here is the error: Warning: SAFE MODE Restriction in effect. The script whose uid is 522 is not allowed to access /tmp/phpupload/phptQdi31 owned by uid 0 in upload_in_imgs.php3 on line 127
From: Rasmus Lerdorf <rasmus@php.net> To: b0ld b0lb <b0ld@hotmail.com> CC: <php-general@lists.php.net> Subject: Re: [PHP] upload problem (uid) Date: Tue, 10 Apr 2001 16:15:48 -0700 (PDT) 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 -- 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
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

« previous php.general (#48137) next »