Uploading files.
| From: | Jo�o C�ndido de Souza Neto | Date: | Sat, 28 Oct 2006 17:47:44 +0000 |
| Subject: | Uploading files. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-243796@lists.php.net to get a copy of this message | ||
Hi everyone.
I´m in a big doubt about uploading files ins a safe way.
I wont give permission for the web server user to write in some folder of my
system and then use move_uploaded_file function in order to keep it secure.
I was using ftp functions to do it but a get a new trouble, in some servers
my ftp user has no permission to read in the upload temp folder of php.
I am determined to access by ftp funcions, give permission to web server
user, put the file by move_uploaded_file and take the permission previously
gave. I do not test but i think it will works.
Someone has another tip to do it without loss security?
Thanks in advance.