Okay, guys, I really got stuck here... I want to create a main directory and subdirectories... for instance:
entry --> 2006...2010 --> January ... December
How am I going to accomplish this? I got stuck at 2006...2010 and so forth.
Please help!
Printable View
Okay, guys, I really got stuck here... I want to create a main directory and subdirectories... for instance:
entry --> 2006...2010 --> January ... December
How am I going to accomplish this? I got stuck at 2006...2010 and so forth.
Please help!
Errm ... create the directories?
What do you really want to do?
Like I'm making a blog...
For example, my main/parent directory is "entry," then when I submitted/posted a new entry on the form, the file says "jan.txt" would go to the directories/folders in order:
entry/2005/January/jan.txt
I don't know how to accomplish that "logic," any helps?
Makes more sense?
I think the function is called mkdir(). But the server needs write permissions in the content directories.
Usually, one uses a database for this sort of thing :)
Not always. Many blog systems create static files from the blog entries. It saves a lot of processing time.