Home > Backend Development > PHP Tutorial > 上传文件时出现错误

上传文件时出现错误

WBOY
Release: 2016-06-23 14:14:31
Original
1612 people have browsed it

Warning: move_uploaded_file(D:/EOFFICE/webroot/register.inc) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\eoffice\webroot\inc\reg_submit.php on line 57

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\eoffice\tmp\phpD077.tmp' to 'D:/EOFFICE/webroot/register.inc' in D:\eoffice\webroot\inc\reg_submit.php on line 57


回复讨论(解决方案)

上传文件目录的权限问题。

上传文件目录的权限问题。
权限我现在都加了everyone了还是不行

临时目录和目标目录的权限都改了吗

临时目录和目标目录的权限都改了吗
都改了 还是不行

有没有人来帮一下忙啊

贴出你的代码

把你要上传的那个文件的权限更改一下,另外在php.inc中上传文件的那一行代码改为启动,上传的路径改为本地路径。具体的你搜一下命令更改一下。

move_uploaded_file(临时路径,存储路径+文字名);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template