RE: safe_mode + move_upload_file

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

 



[snip]
I try to use move_upload_file function with safe_mode (with PHP 4.3.10).

When I turn the safe_mode off, the function works fine, but when I turn it
back to on, the function doesn't work (with no error message).

When I read the documentation about safe_mode, I do not see any
restriction concerning the usage of move_upload_file function in this mode. 

Does someone experienced this problem ?
[/snip]


>From TFM

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."

-- 
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