ID:               32387
 User updated by:  ricike at aporisk dot hu
 Reported By:      ricike at aporisk dot hu
 Status:           Open
 Bug Type:         Documentation problem
 Operating System: Windows Server 2003 / IIS 6.0
 PHP Version:      4.3.10
 New Comment:

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?


Previous Comments:
------------------------------------------------------------------------

[2005-03-21 08:20:09] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to