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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to