# \[Q\] cannot change "upload\_tmp\_dir" path in PHP.ini

**URL:** <https://forum.kirupa.com/t/q-cannot-change-upload-tmp-dir-path-in-php-ini/239483>\
**Category:** programming\
**Created:** [September 22, 2007, 8:52am UTC](https://forum.kirupa.com/t/q-cannot-change-upload-tmp-dir-path-in-php-ini/239483 "2007-09-22T08:52:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manfree](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@manfree](https://forum.kirupa.com/u/manfree)\
**Post date:** [September 22, 2007, 8:52am UTC](https://forum.kirupa.com/t/q-cannot-change-upload-tmp-dir-path-in-php-ini/239483/1 "2007-09-22T08:52:45Z")

</div>

Dear all,

I have installed a PHP5 for the IIS 5.0

i have changed the path for the **upload\_tmp\_dir**  
in **c:\windows\php.ini** and **E:\PHP\php.ini**

```auto
 
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = e:\php\upload
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M

```

Then I restart the IIS via  
_Computer Management \> Services and Applications \> Services \> World Wide Web Publishing_

use the command of phpinfo();

and found that … the value of

upload\_tmp\_dir is …  
C:\DOCUME~1\user1\LOCALS~1\Temp\php\upload

Even I restart my computer , the upload\_tmp\_dir is still no change ?!?!!?  
the path doesn’t update ?!?!?!?

Any people could help and knows what is going on ???  
Thanks ~~
