Making additional Directories

Hi All,

Green as grass on this so very sorry…but here is my question:

I have a directory called memberFiles, which automatically makes a directory when someone signs up, where they are allowed to add a graphic. mkdir(“memberFiles/$id”, 0755); it works just fine.

Is it possible —to automatically make another directory that has a form inside it once someone signs up?
I tried to add another line below the one that works so ie here is how it looked:

mkdir(“memberFiles/$id”, 0755);
mkdir(“memberForm/$id”, 0755);

I tried to add it, but that did not work. It did not make a folder.

So how does one go about doing this?

Thanks for all your help in advance!!!

Lynn

Does the ‘memberForm’ folder exist and do you have write permissions for it? It may help to look at the permissions of the memberFiles folder.

the memberFiles exist already with 0755 as CHMOD
But not a memberFolder

I mean the member form yes…I have created that already.

Does the memberForm have the same permissions?

Yes, I have the same line in there 755

Here is what it looks line the in php code:
// Get the inserted ID here to use in the activation email
$id = mysql_insert_id();
// Create directory(folder) to hold each user files(pics, MP3s, etc.)
mkdir(“memberFiles/$id”, 0755);

                            mkdir("memberJob/$id", 0755); <<<<<This is what I would like to add, but it won't do it.
	
                            // Start assembly of Email Member the activation link

I don’t mean in the PHP, do you have a folder called memberForm with the same permissions as the memberFiles folder?

No. I was hoping I could add that extra line, and it would automatically make the folder like it did with the memberFile folder, but it did not make it.

Make one and then try the script again. If the script still doesn’t work, please try setting the new directory’s permissions to match the current one. If it does or doesn’t work, post back here.

Sponsor our Newsletter | Privacy Policy | Terms of Service