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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:22:29+00:00 2026-05-28T17:22:29+00:00

I have an upload system ready, however I might be facing a very high

  • 0

I have an upload system ready, however I might be facing a very high load that may bring down our servers. The hosting provider limits the instances of a PHP script running at the same time to about 30. However, while people are uploading they often take longer than expected to finish the script and other people are given an “Internal Server Error” until a spot frees up.

My specific question is, is there a way to limit the number of people running the script at the same time? For example, a queueing system where only 29 people are uploading at the same time (server stays up) and other people can only start uploading when spots free up. How would this be possible?

  • 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-28T17:22:29+00:00Added an answer on May 28, 2026 at 5:22 pm

    Save a value (ideally in Memcache, but MySQL works fine too) that says how many people are uploading. It starts at zero, then when someone starts uploading you increment it before starting to process the upload. When the upload has finished, decrement the counter again.

    If the counter is above your threshold, stop people from accessing the uploader or give a friendly error message.

    Alternatively, find a host with better systems. I hope this doesn’t count as advertising, but the host I use provides much, MUCH better systems, and almost certainly cheaper than whatever you’re paying your current host.

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

Sidebar

Related Questions

I have a data-upload function that load some data into several tables and processes
I have a function that encrypts and upload a file from my system to
So I have a boat load of pivot tables that I upload everyday to
I have a system where employees can upload files. There are three ways Upload
I have an upload script that write a index.html file, I modified it to
I have a file upload form that is being posted back to a servlet
I have some code that allows users to upload file attachments into a varbinary(max)
I have a program that uploads files to our server when they are dropped
I have a system whereby users can upload sometimes large(100-200 MB) files from within
I have an android application that allows users to upload images to their account.

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.