※This article is based on PHP 5.4
wordpress 上传文件出现HTTP错误,怎么修改都不行
修改PHP.ini配置中的 upload_tmp_dir 和 open_basedir项
;;;;;;;;;;;;;;;; ; 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 =/tmp upload_tmp_dir =E:/websoft/temp ... ... ... ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory ; or per-virtualhost web server configuration file. This directive is ; *NOT* affected by whether Safe Mode is turned On or Off. ;open_basedir = open_basedir="E:/websoft/web/OfficeSite/decouvrir2"
コメント: