create folders on the fly
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?
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 posted this at 02:39 — 15th December 2003.
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 posted this at 07:47 — 15th December 2003.
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
Abhishek Reddy posted this at 08:23 — 15th December 2003.
He has: 3,348 posts
Joined: Jul 2001
http://www.php.net/manual/en/function.mkdir.php
More functions you might find useful: http://www.php.net/manual/en/ref.filesystem.php
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.