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
Damodhar [ Mo, 07 April 2008 19:48 ] [ ID #1940481 ]

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
--
webmasterNOSPAMTHANKS [ Mi, 09 April 2008 20:43 ] [ ID #1940613 ]
PHP » comp.lang.php » Create Directory problem

Vorheriges Thema: Problems with matching on last element in array
Nächstes Thema: Captcha image Text Size