Jump to content

MKDir Upon New Registration


hobbiton73

Recommended Posts

Hi, I wonder whether someone may be able to help me please.

 

I'm fairly new to PHP so please bear with me.

 

I'm trying to put together a script which bascially creates a hierarchical tree of folders upon a new account being created by a user.

 

I would like to take the 'username' that the user registers with to use as the name for the first folder, then, create a folder at the second level called 'images' and then finally, a folder within that called 'thumbs'.

 

From the research that I've done, I believe that I need to use the 'mkdir' command, but I can't find a very straight forward tutorial.

 

I just wondered whether someone could perhaps please help me out with this, so that I at least have a good solid starting point.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.