The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 4 of 4

Thread: Photo Gallery Back-End

  1. #1

    Photo Gallery Back-End

    I'm trying to narrow down some options and would like a little help.

    I'm trying to create a personal photo gallery with albums, sub-albums, and categories. I know how to create and upload individual photos to the DB, but how can I upload an entire folder on my HD and then update the DB (and/or XML) accordingly?

    iPhoto has the ability to "sync" your assigned albums to your .Mac gallery whenever there are new photos added. I want to do something similar. I just don't have the time, nor do I want to have to update my xml, or upload photos one at a time just to update my gallery.

    Thank you in advance.

  2. #2
    Registered User
    google php spider directory im sure youll find a few methods to spider through a directory.

  3. #3
    yeah, I looked into that a bit... I appreciate it, but I need more specific help than that.

  4. #4
    I've done something similar to this. Here's the theory behind...
         Image 1
         Image 2
         Image 1
         Image 2
    SubFolders are your categories, upload your images into whatever subfolder. Create a script that reads each folder makes an array, and compares it to your XML/DB. in PHP you would do a create an array from your XML/DB of the images in that XML/DB then loop it through and compare it, in php could use.
    PHP Code:
    If the file exists in the folder but not in your XML/DB it writes to it. Similarly if something exists in your XML/DB that doesn't exist in your Folders you remove it from the XML.
    Let us live so that when we come to die even the undertaker will be sorry. - Mark Twain
    Don't PM me your CSS, xHTML, JS or PHP questions. I will not reply to ANY IE6 questions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012