#32387 [Opn->Bgs]: Problem with upload_tmp_dir when set as "Per Directory Value"

From: Date: Mon, 21 Mar 2005 14:35:31 +0000
Subject: #32387 [Opn->Bgs]: Problem with upload_tmp_dir when set as "Per Directory Value"
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969367048@lists.php.net to get a copy of this message
ID: 32387 Updated by: vrana@php.net Reported By: ricike at aporisk dot hu -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Windows Server 2003 / IIS 6.0 PHP Version: 4.3.10 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of bug #32337. Previous Comments: ------------------------------------------------------------------------ [2005-03-21 15:28:32] ricike at aporisk dot hu Hmmm. It is easy to say, "this is not a bug, this is a feature." :)) Can we expect that it will be possible in a future release to configure upload_tmp_dir on per directory or per website basis? For example, PHP reads php.ini and Per Directory Values together at startup? Or by extensing the IIS metabase, like using php_admin_value in httpd.conf with Apache? ------------------------------------------------------------------------ [2005-03-21 08:20:09] sniper@php.net Ah yes, this is the inherent problem of using the registry. The values from it are used AFTER upload has already happened (and just before script is executed) Moving to documentation problem, there was also other one.. ------------------------------------------------------------------------ [2005-03-21 01:40:26] ricike at aporisk dot hu I tried the snapshot. The situation is the same, phpinfo() shows the correct configuration, but $_FILES["file"]["tmp_name"] always points to the path defined in php.ini, regardless of the Per Directory Values. ------------------------------------------------------------------------ [2005-03-20 22:59:20] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2005-03-20 22:32:37] ricike at aporisk dot hu Description: ------------ I have changed in php.ini the upload_tmp_dir to a directory which i want to use for most of the websites. And i used the "Per Directory Values" thing in the registry for a specific website's wwwroot to use an other temp dir for file uploads. When phpinfo() is called, it says the correct local and master values, but when i upload a file, it is uploaded into the the temp directory specified in php.ini, not to the directory specified for that website. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32387&edit=1

« previous php.doc (#969367048) next »