Re: RE: safe_mode + move_upload_file

From: Date: Mon, 13 Feb 2006 22:47:23 +0000
Subject: Re: RE: safe_mode + move_upload_file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-230338@lists.php.net to get a copy of this message
http://us2.php.net/manual/en/function.move-uploaded-file.php "Note: move_uploaded_file() is both safe mode and open_basedir aware. However, restrictions are placed only on the destination path as to allow the moving of uploaded files in which filename may conflict with such restrictions. move_uploaded_file() ensures the safety of this operation by allowing only those files uploaded through PHP to be moved."
Thanks for your answer. I had seen this note before, but I don't understand it (I also looked at the french translation but I also don't understand it).
move_uploaded_file is "safe-mode aware" - it doesn't care whether safe-mode is on or off. You can only use move_uploaded_file like: move_uploaded_file($_FILE['blah']['tmp_name'], $destination); Check that your destination directory is writable.

« previous php.general (#230338) next »