Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个任务是将一些文件拖放到占位符上并将它们上传到服务器,然后创建一个下载链接。所以我使用 PHP、JavaScript 和 HTML5。但我想在日期明智的文件夹中管理这些上传的文件。
谁能帮我用 dat 管理这些文件?文件夹将根据系统日期创建。
这是您要制作文件夹的内容吗?
$d = date('h-i-s'); mkdir("/path/whatever/" . $d , 0700);
尝试一下!
$desired_dir= "system_date";<br> $file_name = 'uploads/'.time().rand(0,999);<br> if(is_dir($desired_dir)==false) { mkdir("$desired_dir", 0700); }