Results 1 to 6 of 6

Thread: I got stuck years and month dir's

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    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!

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    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?

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: I got stuck years and month dir's

    Usually, one uses a database for this sort of thing

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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
  •  



Click Here to Expand Forum to Full Width