juelianhudie 2006-3-10 15:32
	什么函数能够把文件从一个目录下转移到另外一个目录下?
什么函数能够把文件从一个目录下转移到另外一个目录下?
 
	chirenchafu 2006-3-10 15:33
	<?php  
$old_file  =  "ssss.txt";  
$new_file  =  "ssss/".$old_file;  
if  (copy($old_file,$new_file)){  
           echo  "移动成功";  
           unlink($old_file);  
}  
else  {  
           echo  "移动失败";  
}  
?>  
ssss  文件夹为与此程序同级!
 
	火之子 2006-3-10 15:34
	文件所在的文件夹的属性中,安全选项加EveryOne  完全控制.  
如果ls.htm文件为只读,系统,隐藏.只要其中的一项为真,都全出现上述错误.  
你试试吧!