Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3237918
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:47:39+00:00 2026-05-17T17:47:39+00:00

Using PHP i want to create a picture gallery, i need a few suggestion

  • 0

Using PHP i want to create a picture gallery, i need a few suggestion on what would be the best logical solution for this.

a) create a directory for an album and move all the related pictures into the directory and henceforth follow the same way for other albums

b) keep a record or the path using the database(MySQL) and use the relational table (album).

for the method a . is there any way to deal the picture gallery without actually having the need to use the database or XML or whatsoever(database).?

what is your take on this?
thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:47:40+00:00Added an answer on May 17, 2026 at 5:47 pm

    IMO the database route is the one to take, as it will be much more extensible and easier to maintain.

    If you decide to add in a rating/description/review/[whatever] at a later date you will have the foundations in place.

    you can still create a directory for each album – WordPress adopts this kind of practice (/uploads/2010/10) for instance – (directories for each month)

    you could do it without a database, through some means of directory traversal and an imaginative naming scheme – if you wanted to sort or search the images some common naming format would be needed. Plus you are very restricted on meta data.

    +1 for database from me. You ~can~ even store the images in the DB. but I prefer to keep them as images and just link to the path.

    my $0.02

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using php and i want to create a video gallery. THe videos
I have a secret word (example. dirtydawg) And using PHP I want to create
I want to create an array using PHP that can be used in MySQL.
I want to create sub-domains using PHP on the fly. Suppose a user registers
I want to create a contact importer application.How to Import facebook contact using php
I want to create an application using php and mysql. Assume i am making
I want to create website thumbnails (screenshots) using php. I have a dedicated server
im using php I want to read a url ex http://www.cnn.com create a new
I am using PHP. I want to create an MVC setup from scratch to
I am writing a web application using PHP. I want to use the MVC

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.