Page 1 of 1

creating a directory

Posted: Thu Jul 24, 2003 11:56 am
by psychotomus
how do you create a directory with php?

Posted: Thu Jul 24, 2003 12:43 pm
by DuFF
check out mkdir

Posted: Thu Jul 24, 2003 12:44 pm
by Stoker

Posted: Thu Jul 24, 2003 12:57 pm
by psychotomus
ok i looked over that, i been messing with it for about 15 minutes and i cant figure it out. i got

mkdir("test", some number)
i been using all the numbers, so far only 1 of them worked, but as soon as i uploaded the file it created the directory without me even going to the page.
when i use 0700 it creates the directory as soon as i upload the file without even going to the page, what i want to do is create different folders for different users. like after they register with a form, take the variable user and create that directory

Posted: Thu Jul 24, 2003 1:47 pm
by patrikG
That's your code doing it, not mkdir. Post it (the code that is).

Posted: Thu Jul 24, 2003 1:58 pm
by psychotomus
i got it figured out, thnx