Create Directory problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Damodhar

    Create Directory problem

    hi any one can help me to create the folder and sub folders


    for ex my project root is : test

    i want to create the folder like files/images/personal/profile/album/
    damu


    i want to create the folder structure like

    i create code like

    if ( !is_dir( 'files' ) )
    {
    mkdir ('files');
    }

    similarly how can i create sub folders pls help me

  • =?iso-8859-1?Q?=C1lvaro?= G. Vicario

    #2
    Re: Create Directory problem

    *** Damodhar escribió/wrote (Mon, 7 Apr 2008 10:48:09 -0700 (PDT)):
    i want to create the folder like files/images/personal/profile/album/
    damu
    >
    >
    i want to create the folder structure like
    >
    i create code like
    >
    if ( !is_dir( 'files' ) )
    {
    mkdir ('files');
    }
    >
    similarly how can i create sub folders pls help me
    Try setting the "recursive" parameter:

    usage:
    bool mkdir ( string pathname [, int mode [, bool recursive [, resource
    context]]] )


    --
    -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    -- Mi sitio sobre programación web: http://bits.demogracia.com
    -- Mi web de humor en cubitos: http://www.demogracia.com
    --

    Comment

    Working...