SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mkdir

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mkdir

    How do I do a mkdir() on my webspace via php?

    It says "Permission denied" whenever I try. I presume that I need to qualify that I am the owner - like when I log in via FTP.

    How do I achieve that via php?

    j.

  2. #2
    SitePoint Zealot mrWoot's Avatar
    Join Date
    Jan 2004
    Location
    Wisconsin
    Posts
    131
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <?php
    mkdir
    ("/path/to/my/dir"0700);
    ?>
    Make sure you chmod it. 0700 is a chmod. Try this also
    PHP Code:
    <?php
    mkdir
    ("/path/to/my/dir"0777);
    ?>


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
  •