关于copy 函数的问题,我想复制文件,结果总是说复制失败
如果我想复制文件 源文件是:“C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\样品.jpg”
目标文件是:“C:\oa\pictures\样品.jpg”
$uploadPicture = C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\样品.jpg”
$file =:\php\pictures\样品.jpg
if (!copy($uploadPicture,$file))
{ echo "文件拷贝出错!}
因为文件目录中有空格,所以这写总是说 文件拷贝出错!
如果文件目录有空格这个情况,应该怎么处理呢?
如果文件目录和文件名都有空格呢?应该怎么处理????