Create Directory problem

Create Directory problem

am 07.04.2008 19:48:09 von Damodhar

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

Re: Create Directory problem

am 09.04.2008 20:43:54 von webmasterNOSPAMTHANKS

*** 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
--