2014-01-22 21:14
采纳率: 0%
浏览 42


I run PHP though IIS 7.5 and made the php installation from 5.3 msi installer

To date everything has run very fine,

but for some reason when i submit a file with an html form, In the php script that should save the file i get this the error 6 witch mean that there is no tmp_folder.

This is the output of print_r($_FILES);

    [test1] => Array
        [name] => Book1.csv
        [type] => 
        [tmp_name] => 
        [error] => 6
        [size] => 0

Now when i look in php.ini

I correctly have this

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "C:\phpDevelopment\tmpFolder"

I don't know what to do to make this to work correctly.

I Googled this problem and i can't find any thing.

Any idea some one ?

Thanks for any help I could have.

Edit --------------------------------------------

Also yes the tmp folder at is there and should have the right to be able to write in.

I setted right to everyone just to make sure i have enough right. We see here that right are set to everyone

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongzhuoxie1244 2014-01-23 13:38

    Try commenting out upload_tmp_dir in your php.ini by putting a ; in front of it so that it uses the default Windows Temp folder by default: C:\Windows\Temp

    Also make sure your Application Pool Identity or group of Identity users has write permission to the temp folder.

    打赏 评论

相关推荐 更多相似问题