SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php Photo Gallery search by date

    I know this is a shot in the dark but

    Has anyone heard of any php photo galleries that you can search by date or date range

    I have to create a gallery that can show a weeks worth of photos at a time

    I figured I would just modify an existing gallery, but everyone i have tried so far have nothing to do with the date

    I was sort of hoping I could just modify the search function of the gallery to show a weeks worth of photos at time

    any suggestions

  2. #2
    SitePoint Enthusiast praveenkv1988's Avatar
    Join Date
    May 2011
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you can modify the script to insert the date into a database table, this should be easy.

  3. #3
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,435
    Mentioned
    82 Post(s)
    Tagged
    3 Thread(s)
    How complicated do you want the gallery as you could write your own or modify the code as praveenkv1988 said.

    If you are not using a database to record the date when the file was uploaded you could get the file upload time from PHP: filemtime - Manual or even rename the file to the time/date it was uploaded. You could then search by filename.

  4. #4
    SitePoint Enthusiast praveenkv1988's Avatar
    Join Date
    May 2011
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using filemtime is not good as it will consume a lot of server resources.
    Happy Hosting
    Managed VPS Hosting with CPanel/Plesk/DirectAdmin.
    Managed Windows / Linux Dedicated Servers.


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
  •