Create Directory problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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/

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

*** Damodhar escribió/wrote (Mon, 7 Apr 2008 10:48:09 -0700 (PDT)):
Quoted text here. Click to load it

Try setting the "recursive" parameter:

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

-- - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
-- Mi web de humor en cubitos:

Site Timeline