[HELP] PHP Folder Gallery Script

Discussion in 'PHP' started by SamuelSensei, Mar 9, 2010.

  1. #1
    Hey everyone,

    I'm rather new to PHP and I'm having a little trouble with creating a gallery script. What I want to do is have PHP look into certain folders and view them on the page. I don't want to post up pictures from the website, but rather just upload them straight into a folder, and PHP will just retrieve it from there. Anyone know how?

    Any help will be appreciated.

    Thanks,
    -Samuel
     
    SamuelSensei, Mar 9, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    thats a long process it will be more better to google it.
    try php parse directory
     
    bartolay13, Mar 9, 2010 IP
  3. WPGLamour

    WPGLamour Active Member

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #3
    You will need to use this function: http://php.net/manual/en/function.readdir.php
    Once the files are read you will have to display the filename in a IMG tag so it can be displayed to the browser.
    My suggestion is to search for a script that already does this rather than building one from scratch.
    Search for "php image gallery" on google.
     
    WPGLamour, Mar 10, 2010 IP