Results 1 to 3 of 3

Thread: Creating a dir in a folder via php

  1. #1
    Join Date
    Dec 2010
    Posts
    30
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Exclamation Creating a dir in a folder via php

    Is there a way of creating a directoy with a specific name using php. I currently have a way of creating a directory on the same level as the php doc however with this code i want to be able to create a directory within another directory and give it a name. is this possible ?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    http://php.net/manual/en/function.mkdir.php
    Just set a path (a relative path to the execution location of the active script).
    Set it to recursive you need to generate several layers.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Dec 2010
    Posts
    30
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •