查看: 736|回复: 7
|
大家来帮忙,关于php的
[复制链接]
|
|
问题在第六楼
[ 本帖最后由 L3MoN_TeA 于 11-3-2006 10:15 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 11-3-2006 09:53 AM
|
显示全部楼层
不能够,因为那是SECURITY 的关系.
BROWSER 禁止了这样的 SECURITY HOLE
[ 本帖最后由 exiang 于 11-3-2006 09:54 AM 编辑 ] |
|
|
|
|
|
|
|
楼主 |
发表于 11-3-2006 04:47 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 11-3-2006 04:55 PM
|
显示全部楼层
这个element是read only不能predefine/modify by VB/JScript |
|
|
|
|
|
|
|
楼主 |
发表于 11-3-2006 05:43 PM
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 11-3-2006 10:13 PM
|
显示全部楼层
<?php
$userfile=$HTTP_POST_FILES['userfile']['tmp_name'];
$userfile_name=$HTTP_POST_FILES['userfile']['name'];
$upfile = 'C:/Documents and Settings/wei/My Documents/'.$userfile_name;
if(is_uploaded_file($userfile))
{
if(!move_uploaded_file($userfile,$upfile))
{echo 'cant move to destination';
exit;
}
}
else
{echo'upload attack';
}
error is
Warning: move_uploaded_file(C:/Documents and Settings/wei/My Documents/winampmb.htm): failed to open stream: Permission denied in c:\inetpub\wwwroot\upload2.php on line 18
Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php30F.tmp' to 'C:/Documents and Settings/wei/My Documents/winampmb.htm' in c:\inetpub\wwwroot\upload2.php on line 18
请问这又是什么问题? |
|
|
|
|
|
|
|
发表于 19-3-2006 06:29 PM
|
显示全部楼层
Permission denied,你不能将file 移到 C:/Documents and Settings 的,这是security 问题,
通常security 设定为只能将file upload 到 www/ (root/) 的sub folder 而已,
将 C:/Documents and Settings/wei/My Documents/ 改为 documents 就行了 |
|
|
|
|
|
|
|
发表于 20-3-2006 03:31 AM
|
显示全部楼层
i bet ur using NTFS file system, goto that folder and add security access for IUSER, or move ur upload path to TEMP or server root, if ur using IIS , try to run it as Administrator account ....(but once u get hacked u die) |
|
|
|
|
|
|
| |
本周最热论坛帖子
|