|
-
Dec 22nd, 2005, 10:38 PM
#1
Thread Starter
Frenzied Member
I got stuck years and month dir's
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!
-
Dec 23rd, 2005, 08:58 AM
#2
Re: I got stuck years and month dir's
Errm ... create the directories?
What do you really want to do?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 23rd, 2005, 06:47 PM
#3
Thread Starter
Frenzied Member
Re: I got stuck years and month dir's
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?
-
Dec 23rd, 2005, 08:13 PM
#4
Re: I got stuck years and month dir's
I think the function is called mkdir(). But the server needs write permissions in the content directories.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 24th, 2005, 05:24 PM
#5
Re: I got stuck years and month dir's
Usually, one uses a database for this sort of thing
-
Dec 24th, 2005, 08:44 PM
#6
Re: I got stuck years and month dir's
Not always. Many blog systems create static files from the blog entries. It saves a lot of processing time.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|