SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Uploading

  1. #1
    Non-Member MrLister's Avatar
    Join Date
    Feb 2001
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Uploading

    This is what i'm trying to make. A form where they can upload a file. The only thing is that it uploads it to images/$gamename/ . I understand how i can do that but how can i make it when i add a game it automatically makes that folder inside images? is there a command for making folders? i searched php.net but might have searched wrong because i found nothing and i'm pretty sure i remember reading somewhere about htis command.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mkdir() is what you want, keep in mind though that any directory created by the web server will not be able to be modified by you through ssh or ftp. Which is fine if you plan to manage all files from a web interface.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    Non-Member MrLister's Avatar
    Join Date
    Feb 2001
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what do you mean modify? you mean i can't delete or rename?

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes beacuse the web server runs as a different uid and gid as your user, so when the web server creates folders, then your user doesn't have permission to delete or rename them.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    Non-Member MrLister's Avatar
    Join Date
    Feb 2001
    Posts
    108
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh i see. thx for the help


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
  •