create folders on the fly

Busy's picture

He has: 6,151 posts

Joined: May 2001

when someone uploads an image (or even when they sign up) I want to creata a folder for them using their member number and add either a .htaccess file in there or blank html file (file isn't a need)

any idea of how?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

test to see if the folder exists, the make it, then put the image in it. you'll have to set the folder permission to not be indexable, I think.

Clearly I'm not all that sure, lol.

Busy's picture

He has: 6,151 posts

Joined: May 2001

lol thanks, but how do you make a folder with php?

make dir ?

can't find much on the net, could of missed it at php.net

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.