Re: RE: safe_mode + move_upload_file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux