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 8658095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:41:01+00:00 2026-06-12T15:41:01+00:00

This is quite an ‘out there’ question but i’ve been thinking about some simplification

  • 0

This is quite an ‘out there’ question but i’ve been thinking about some simplification in my app and if this is at all possible would be a really clean way of doing things.

Please note: I am not looking for comments regarding unneeded optimzation etc. I am well aware that this, however it is something I have been thinking about recently and wondered if it was possible.

Background info:

If you imagine a users ‘cover photo’ similar to those seen on Facebook and Google+. In these apps you can adjust the vertical position of the image by dragging it up or down on your profile page.

This functionality is exactly the same in my app. User drags the image on their profile page, when they let go of the mouse button an ajax post is sent to server and it updates the database with the new ‘top’ value.

This ‘top’ value is read from the database when needed and of course the css is set accordingly. Everything works fine

Question:

So with all that in mind, is there any way, via PHP of storing meta data to a file itself. In this case a .jpg file. I know that you can read certain file info data from files but is this directly customizable? Would it be possible to set a simple meta data property named ‘top’ and give it an integer, allowing this to be read within the app bypassing the need for the database at entirely? If so are there any drawbacks to this method?

If of course this is not possible/desirable then fine. This would also be considered a correct answer, but please explain why.

An unusual question I know. Hopefully somebody will have an insight on this.

  • 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-06-12T15:41:02+00:00Added an answer on June 12, 2026 at 3:41 pm

    You can manipulate exif data, which is meta data stored in images. So theoretically you could ‘save’ the top value in a metadata field… BUT. Don’t do it! It’s likely gonna be overly expensive for the fact that you just want to save one integer. You can’t test it in a standard way, it’s not a standard way of doing things so the next guy will miss it if you don’t document it well, etc. etc. Your database connection is open anyway, likely you have the user in memory, so writing and reading this value from the user profile is really not a big thing. All in all, not a good idea I think, even though it’s original.

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

Sidebar

Related Questions

I've been thinking about this quite a bit lately, and I would like some
I have been asked this question and have given this quite some thought but
I've been reading on this quite some time...and i'm puzzled - Can you help
Vaguely remember seeing some discussions on this quite a while back but haven't heard
I just got this quite large CakePHP app (about 20k lines of code), which
sorry if this quite a easy question, but i cant find any thread the
I have this quite long query that should give me some information about shipments,
This question is mostly curiosity than anything else. But I currently place all my
I tried googling this quite a bit, but all the articles are from early
I have this quite popular problem, but have failed to find a solution that

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.