for loop - Creating a directory path not working with PHPs mkdir? -


i have following directory c:/files , i'm trying create wrapper function emulates mkdir()'s functionality except works on more 1 folder e.g.

mkdir works fine on following:

mkdir('c:/files/games', 0777); 

but not on this:

mkdir('c:/files/games/say/yes', 0777);  

heres rough code further describe i'm trying achieve:

function mmkdir($path, $chmod = 0777) { /* loop or mkdir()? here */ }  mmkdir('c:/tmp/something/something');  mmkdir('c:/tmp/go/something');  mmkdir('c:/tmp/yes'); 

call mkdir() function recursive parameter set true. example:

mkdir('c:/files/games/say/yes', 0777, true); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -