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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:16:08+00:00 2026-06-09T07:16:08+00:00

If a lot of users calling same PHP scripts at same time. What is

  • 0

If a lot of users calling same PHP scripts at same time. What is the order of executions?
Will it be queued? After finished executed for 1 session, it will execute another?

I am very new to server side programming. The PHP I am writing will access database, and query database with transactions(meaning there is commit and rollback if any query in the transaction is failed). If the PHP are executed without order, it apperantly will mess up the thing.

[Add] Thanks for the replys, I will be more specific about the problem:
Its a online game communicating with server via PHP. Transaction is needed to make sure everything is consistent. Like registering a new player, we don’t want the talbe “PlayerData” is inserted and “PlayerInventory” failed because of some error. They supposed to success or fail as whole.

So if the PHPs execute at same time, then “Rollback” Or “Commit” will possibly to rollback or commit the trasaction running by other PHP at same time.

So, what is the solution for this?

Thanks in advance

  • 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-09T07:16:10+00:00Added an answer on June 9, 2026 at 7:16 am

    regarding your update…

    Each php request will have its own db connection, so if you rollback on one connection it wont affect other php requests. its that easy :), as long as you are using transactions, database should free you from fears of inconsistency.

    Usually php requests use short living process, so if you got 10 concurrent users every one will have his own process, the moment the request is fulfilled the process is killed

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

Sidebar

Related Questions

A lot of users on one of our online apps complain about the app
I've seen a lot of users on this site provide operating system specs when
One of my sites has a lot of users. They currently each have one
Users of our website often type in a lot of garbage for the name
I'm getting awful lot of spam to my forums where only registered users can
I'm testing a new iPhone app with my end-users and found that a lot
I've noticed that a lot of sites don't bother anymore with work-arounds so users
I'm getting a lot of these exceptions from users: java.lang.OutOfMemoryError: bitmap size exceeds VM
In PHP I know many people will use a class to SET and GET
I am coding a web portal which stores a lot user data and later

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.