PHP拷贝文件(copy),文件名有空格的问题求解 (转载)# PhotoGear - 摄影器材
s*a
1 楼
【 以下文字转载自 Programming 讨论区 】
发信人: shorea (未注册用户), 信区: Programming
标 题: PHP拷贝文件(copy),文件名有空格的问题求解
发信站: BBS 未名空间站 (Fri Jul 19 21:10:56 2013, 美东)
$f = 'file name.txt'
copy('file name.txt','filename.txt'); ##没问题;
copy($f,'filename.txt'); 就有warning : The first argument to copy() function
cannot be a directory
肿莫破?
发信人: shorea (未注册用户), 信区: Programming
标 题: PHP拷贝文件(copy),文件名有空格的问题求解
发信站: BBS 未名空间站 (Fri Jul 19 21:10:56 2013, 美东)
$f = 'file name.txt'
copy('file name.txt','filename.txt'); ##没问题;
copy($f,'filename.txt'); 就有warning : The first argument to copy() function
cannot be a directory
肿莫破?