#author("2024-02-20T09:21:14+08:00","default:Admin","Admin") #author("2024-02-20T09:21:26+08:00","default:Admin","Admin") [[PHP]] &color(red){※This article is based on PHP 5.4}; #contents wordpress 上传文件出现HTTP错误,怎么修改都不行 * 修改PHP.ini配置 [#a5c4b8d1] 修改PHP.ini配置中的 upload_tmp_dir 和 open_basedir项 #codeprettify{{ ;;;;;;;;;;;;;;;; ; 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" }} * [#pb61e54c] #hr(); コメント: #comment_kcaptcha