creating a directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

creating a directory

Post by psychotomus »

how do you create a directory with php?
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

check out mkdir
User avatar
Stoker
Forum Regular
Posts: 782
Joined: Thu Jan 23, 2003 9:45 pm
Location: SWNY
Contact:

Post by Stoker »

psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post 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
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

That's your code doing it, not mkdir. Post it (the code that is).
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Post by psychotomus »

i got it figured out, thnx
Post Reply