----- Original Message -----
From: "Lasse Laurila" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 13, 2001 6:07 PM
Subject: [PHP] Upload user account


> On what user account are PHP uploads handled? I tested the upload script
> from PHP docs and it worked fine only if I gave the world write access to
> the destination directory (the one I moved the file with
> move_uploaded_file() function).
>
> How should this be done safely?


You dont need world writable, the webserver only needs to be able to write
in the dir where the file should be, more safely make the webserver user
the owner of the dir.

--
Henrik Hansen


-- 
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