SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with folder settings

    Do you need to have a folder excecutable in order to read images from it? For instance i have a script that pulls image names/urls from my database, and then displays them in a loop.
    When i CHMOD the dir to 666, it doesn't display the pictures/thumbs.
    Unless i chmod it so that each group has execution capability, it won't get the pics.
    the problem is the directory has to be writeable as images are uploaded.
    I do check that the uploaded files are indeed jpeg's, but i'd rather not have a directory that can be uploaded to and executed.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*

  2. #2
    PHP warrior dkode's Avatar
    Join Date
    Sep 2001
    Location
    Planet Namek
    Posts
    329
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the folder must be chmod'ed to 755 in order to be viewable from the web. Try typing in the full url of the image and looking at it, If you can view it then the permissions are correct. I beleive by default, unix and linux set folders automatically to 755 when created.
    "Mankind cannot define memory, yet it defines mankind"
    -- Project 2501, Ghost in the Shell

    Smarty | PEAR | PHP Manual | MySQL Manual

  3. #3
    SitePoint Wizard Defender1's Avatar
    Join Date
    Apr 2001
    Location
    My Computer
    Posts
    2,808
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't use 755. It has to be writeable via browser.
    I always thought you could view an image at 666, but not execute scripts etc.
    Defender's Designs
    I'm Getting Married!

    Not-so-patiently awaiting Harry Potter Book 7 *sigh*


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
  •