note 22776 deleted from features.file-upload by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 12:05:23 +0000 |
| Subject: | note 22776 deleted from features.file-upload by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56097@lists.php.net to get a copy of this message | ||
Note Submitter: j-php@pureftpd.org
----
Always use move_uploaded_file() to have your uploaded file in a suitable location, not copy() .
move_uploaded_file() is easier and more secure.
And it will work in safe_mode and with an open_basedir.
It your customers complain about errors like :
Warning: open_basedir restriction in effect. File is in wrong directory in
/users/sexydoo/www.bitchy-sex.com/html/inscription.php on line 40
with scripts managing uploaded files, tell them to replace copy() calls with move_uploaded_file() .