trix Posted October 24, 2005 Share Posted October 24, 2005 i was wondering how i could create a folder thats dated with php? ie backup.day.month.yr and then copy a file to that dir? (this is all on win32 btw) thanks for anyhelp :) Link to comment Share on other sites More sharing options...
0 bartheq Posted October 24, 2005 Share Posted October 24, 2005 $dir = "backup.".date("d.m.Y")."/"; if (!is_dir($dir)) mkdir($dir); $file = "test.txt"; copy($file,$dir.$file); should work (: Link to comment Share on other sites More sharing options...
0 trix Posted October 24, 2005 Author Share Posted October 24, 2005 thanks i'll check if it works when i get back home Link to comment Share on other sites More sharing options...
Question
trix
i was wondering how i could create a folder thats dated with php? ie backup.day.month.yr
and then copy a file to that dir?
(this is all on win32 btw)
thanks for anyhelp :)
Link to comment
Share on other sites
2 answers to this question
Recommended Posts