note 30205 deleted from function.move-uploaded-file by nlopess

From: Date: Wed, 05 May 2004 15:50:08 +0000
Subject: note 30205 deleted from function.move-uploaded-file by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69251@lists.php.net to get a copy of this message
Note Submitter: ---- If you were thinking, like me, that move_uploaded_file() operates on uploaded files even if they are outside your basedir (as set in the open_basedir directive) - you are *wrong*. This was a very unpleasant surprise which I wasn't expecting - and I do hope this behaviour changes in future versions. Until then, you can add /tmp (or whatever your upload_tmp_dir is) to the open_basedir directive, like this: # httpd.conf syntax php_admin_value open_basedir /home/yoursite:/tmp

« previous php.notes (#69251) next »