PHP help with creating folders with underscores?

Nuckatucka

New member
Ok so I have a script that basically creates a bunch of folders and files onto by server.

I have:

mkdir("Members/$name/files", 0755);
mkdir("Members/$name/$name_files", 0755);

it is saying whenever I submit the form that I have that the folder files already exists but I want one folder to be named "files" and one to have their username, then an underscore, then files. ex:

"files"
"username_files"

but i try and it says that the folder already exists.

any help would be nice. Thanks.
 
Back
Top