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

  • Home
  • SEARCH
  • 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 6027385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:35:07+00:00 2026-05-23T04:35:07+00:00

I am making the small finance management website in php. I have to store

  • 0

I am making the small finance management website in php. I have to store quite a few images for my application but i am confused where should i store them. My Scenario is

The user will have

  1. Saving Account
  2. Fixed Deposit

Now for Every Fixed Deposit i need to store the

  1. scanned image of that FD
  2. one or more images for source of money like Bank Cheques

Now where should i store all those images. I mean

  1. Do I need to create folder for each user then each FD and then sources
  2. Or All images in one folder
  • 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-23T04:35:08+00:00Added an answer on May 23, 2026 at 4:35 am

    Don’t store all the images in one folder; you’ll have issues once you have thousands of files in the same folder. It would make sense and divide up nicely to create a subfolder for each user.

    Don’t put the folder in a web accessible directory. Instead have an intermediary php script that accepts some parameters, checks whether the requesting user has privileges to view the file, and then use readfile() to return the image. That way you prevent people from viewing other people’s images.

    Don’t use the file name of the uploaded image. Instead you could use the id of database row as the name, or create a UUID; something unique and generated by you. That way you don’t have to worry about users uploading files with conflicting names or attempting to hack your system with crazy file names.

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

Sidebar

Related Questions

I am going to be making a small user system but I have questions.
I'm making a small Calendar application with some specific functions for my userbase but
I am making a small Windows Phone 7 application and have lots of text
I'm making a small web application in Seaside. I have a login component, and
Im making a small python script for auto logon to a website. But i'm
I'm making a small tool application that user can minimize in the taskbar .
I'm making a small PHP MVC framework for fun. I'm using a front controller
Im making a small private message application in the form of a phone. Ten
I am making a small application and would like a small popup to come
Making a small WCF test program which is based on a Store that has

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.