views:

216

answers:

2

When I create a category in my CMS, I want to create its directory/folder in an image directory.

Can I create a directory or folder with php?

Can anyone tell me how please?

+5  A: 

You want mkdir:

mkdir("/path/to/my/dir");

or

mkdir("/path/to/my/dir", 0700);

If you want it to be private to the user creating it.

Brian Campbell
+1  A: 

mkdir

S.Mark