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

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    15
    I make a script that upload picture file to the server.

    When I'm trying to making directory (mkdir)
    or writing to a file in server I got the error message "Permission Denied".

    My coding :
    mkdir($path,0700);
    $out = fopen($filename,"w");

    I got the same error message in both function.

    I realize that it has something to do with the server security.
    A secure server would not let anybody make a directory or write something in it from a script.
    But there must be a way !!!

    Do I miss something here ??
    Please anybody help me ...

    Thanks in advance ...

    See ya !!



    ------------------
    CyberOsc
    sphmjf_oscario@gurlmail.com

    ** It's the world of Oscario **
  2. #2
  3. No Profile Picture
    Carpe Diem
    Guest
    Devshed Newbie (0 - 499 posts)
    You need to make a directory first and chmod it to 777 then the script will be able to make directorys inthat directory

    Regards
    Darren http://www.php4hosting.com/
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Indonesia
    Posts
    87
    Rep Power
    15
    Thank's alot !!
    That works !!

    But my question now is :
    How if I want to make a directory in the server from my script and then upload a file into that directory ??

    Thanks in advance.

    See ya !


    ------------------
    CyberOsc
    sphmjf_oscario@gurlmail.com

    ** It's the world of Oscario **

Similar Threads

  1. mkdir() permission issue
    By IronCode in forum PHP Development
    Replies: 14
    Last Post: April 10th, 2004, 11:22 AM
  2. LDAP Request - Permission Denied
    By isd503 in forum Visual Basic Programming
    Replies: 0
    Last Post: January 15th, 2004, 12:47 PM
  3. Wierd permission denied in sql
    By Datamike in forum PHP Development
    Replies: 2
    Last Post: November 21st, 2003, 02:29 AM
  4. Cronjob madness
    By eliteboo in forum Linux Help
    Replies: 10
    Last Post: July 14th, 2003, 10:49 AM
  5. Problems installing KDE Decoration
    By Jestah in forum Linux Help
    Replies: 10
    Last Post: November 7th, 2002, 12:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo