SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mkdir problems

Hybrid View

  1. #1
    SitePoint Wizard Zaggs's Avatar
    Join Date
    Feb 2005
    Posts
    1,048
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mkdir problems

    Hi Guys,

    I have created a script that creates a new directory on the server. The new directory is created with 755 permissions. However, when I try to upload files to the directory via FTP i get permission denied message. I think this is because mkdir() by default creates the directory with the root user. I have also tried chown() but get a permission denied error on the dir too.

    Does anyone know a way around this?

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can only chmod a file or directory if it has the same owner as the script's owner ("apache").
    my mobile portal
    ghiris.ro


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
  •