what is the simple way to create folders and sub-folders as upload path?
based on witch day it is
example:
-files
-2012 //year
-01 //month
+01 //day
+02
+03
.
.
.
+29
+30
+02 //month
+03
+04
+05
+06
+07
+2013
.
.
.
is there any class or function to do this making directories?
You can use
mkdir(). It has an option to create folders recursively.Then just build a path using your desired date, and be sure to add
trueto the function.Meaning something like :
To build your date path you need to use the PHP method
date(), for further reading and examples read the documentation.