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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:07:29+00:00 2026-05-31T18:07:29+00:00

I am creating a game currently and I want users to be able to

  • 0

I am creating a game currently and I want users to be able to upload their save games to my site for them to retrieve later, like if they log into another computer or accidentally delete their save from their computer. I want the file to be linked to the specific user that uploaded it, which is easy to do. I have a MySQL database set up that stores the usernames and passwords. The way I think I am going to link the file to the user is to upload the file with its name the same as the username. My problem is I don’t want the files to be able to be accessed without being the owner of the file and I don’t want them all sitting on my web server taking up more room than is needed. I think a good solution is to zip them up together. What would the easiest way to do that is and be able to retrieve it without unzipping every single file in it to get the one save file. Is it possible to take just one file out of it? I am reading up on the zip functions, http://php.net/manual/en/ref.zip.php. Also, is there a better/easier way of setting each file to a specific “owner”? Thanks!

Edit: I want to both zip and unzip the file(s).

  • 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-31T18:07:30+00:00Added an answer on May 31, 2026 at 6:07 pm

    If I understand you well, you want to save all users files into the same big one? I don’t think it’s a good idea… Your server will spend a lot of time to find the only small file that needs to be unzipped, and it’s the same for insertion.

    Instead, simply zip each files individually. YOu’ll still save some space, but without eating 100% of the resources of your server.

    To link users & files, you just needs 2 tables, users and savegames. It’s better to do the link between those tables using user_id, MySQL is faster on integers than varchar.

    Here are some examples from php.net http://php.net/manual/en/zip.examples.php

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

Sidebar

Related Questions

I'm creating a game currently and I want to limit one account per person.
I'm beginner in java and I'm currently creating a card game like gin rummy
I'm creating my first game, and I've currently set up a 'GameState' class, to
I am creating a simple tennis game in Objective-C. Currently, when the player or
I am creating a game where I want to determine the intersection of a
I'm creating a game, and am currently working on the Inventory system for it.
Im currently creating a tile-based game for android. Using java via dalvik JVM. im
I'm creating a card game with multiple classes. Currently, I'm using global variables to
I am currently working on creating an import-based pipeline for my indie game using
I'm creating a basic 2D game (well a game engine) and I've currently been

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.