开发者

How to support upload on PHP installed with IIS 7.0?

开发者 https://www.devze.com 2023-03-09 20:45 出处:网络
I install PHP on IIS 7.0 at Windows Server 2008 and Windows 7. I have setup Wordpress and Joomla and config finished.

I install PHP on IIS 7.0 at Windows Server 2008 and Windows 7. I have setup Wordpress and Joomla and config finished. But I find I can not upload any file with PHP program but okay under ASP.NET.

I had,

  • Config the every permission with write of Upload folder to IUSR and IIS_USRS
  • Config the PHP.ini with 开发者_Go百科file_uploads = On
  • Setup a temp directory and config for every permission with write. upload_tmp_dir = "E:\Webware\PHP.Upload.Tmp"
  • Reboot IIS

But I still can not upload file via PHP program.


When you run phpinfo() what is the value of your upload_tmp_dir?

I'd wager your upload_tmp_dir variable in the [PHP] configuration section of php.ini file is being overwritten in the [WebPIChanges] configuration section, towards the end of your php.ini file...

Depending on how you installed PHP, there may be two upload_tmp_dir variables in your php.ini file, and if the the second one is set, it will overwrite the first.


Take a look at this site, it may help you: http://www.radinks.com/upload/config.php Also i suggest you to don't modify upload_temp_dir

0

精彩评论

暂无评论...
验证码 换一张
取 消