RE: [PHP] safe_mode + move_upload_file

From: Date: Mon, 13 Feb 2006 15:09:54 +0000
Subject: RE: [PHP] safe_mode + move_upload_file
Groups: php.general 
Request: Send a blank email to php-general+get-230311@lists.php.net to get a copy of this message
[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."

« previous php.general (#230311) next »