<? function fup($filename,$fname) { If($filename != "none") { copy($filename,$fname); unlink($filename); } } for($i=0;$i<$cnt;$i++) { $ffnn="file".$i; $ffnnname=$ffnn."_name"; $ffpath="path".$i; //print $$ffnn; print $$ffnnname; print "<br>"; fup($$ffnn,$$ffpath.$$ffnnname); //"tmp/" } ?> phpfans.net收集整理 |