Thread: [Help] Folders

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    [Help] Folders


    I was wondering if it was possible to make a script where someone could press a button and it pops up a create new folder dialogue where the user could input a name and it would create the folder. It would only create a folder in the directory that the script was in. If someone could please help me I would be very grateful.
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,992
    Rep Power
    9397
    Sure. Create a page that asks for the name of the folder, then use mkdir. Be sure to thoroughly sanitize the name they give.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by requinix
    Sure. Create a page that asks for the name of the folder, then use /mkdir]mkdir. Be sure to thoroughly sanitize the name they give.
    How would I make it ask for the name of the directory then create it?
  6. #4
  7. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,992
    Rep Power
    9397
    By... using a webpage and a form? By using PHP code?

    Exactly how new are you to PHP and web development?

IMN logo majestic logo threadwatch logo seochat tools logo