-这是我的代码:
<?php
$directoryIN = "C:\\xampp\\htdocs\\OccasionTransferLeasing\\In\\";
$directoryWORK = "C:\\xampp\\htdocs\\OccasionTransferLeasing\\Work\\";
foreach (glob("$directoryIN*.csv") as $f) {
$filename = basename($f) . PHP_EOL;
}
rename($directoryIN . $filename, $directoryWORK . $filename);
?>
-它给了我这个错误:
警告:重命名(C:\ xampp \ htdocs \ OccasionTransferLeasing \ In \ tab-voiture.csv,C:\ xampp \ htdocs \ OccasionTransferLeasing \ Work \ tab-voiture.csv):文件名,目录名或卷标签语法不正确。第28行的C:\ xampp \ htdocs \ OccasionTransferLeasing \ In \ FunctionRunByDaemon.php中(代码:123)
可能是什么错误?谢谢!