Retrieve and Display Image from Directory

Discussion in 'HTML & Website Design' started by lucreacia, Nov 13, 2012.

  1. #1
    I am trying to retrieve images that users have uploaded and display them. I have a php script that works beautifully, it allows the person who logs into my site to upload an image that meets the requirements and then it stores the image in the image folder that is in my directory, but I cannot figure out how to retrieve the image that was just uploaded and display it on a page without manually going in and doing so with every image that a user uploads. I know it must be simple. I searched the forums and saw similar, but one person was trying to figure out how to do so manually and the other wanted to do so with a database. Any help would be appreciated!
     
    lucreacia, Nov 13, 2012 IP
  2. jessica123

    jessica123 Guest

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think what you need is some server side programing and it will be something like a program that looks for new uploaded files and then gets their file names and use them to put on the page that you want.i have not got time for making a bit and piece for you at the moment but i think that it would not be a big problem for you if you are a web developer.
     
    jessica123, Nov 14, 2012 IP
  3. wizardofx

    wizardofx Well-Known Member

    Messages:
    572
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    140
    #3
    When the downloading program saves the file it should also save the file name and any other data entered into a data base.
    The data base is then accessed when the directory page is written.

    Or you could go old-school and display the raw directory page and let people download the pictures directly!

    wiz
     
    wizardofx, Nov 14, 2012 IP
  4. lucreacia

    lucreacia Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the help!
     
    lucreacia, Nov 14, 2012 IP