Jump to content

When a server serves php pages, is it one at a time, or simultaneous?


Recommended Posts

Let's say I visit somesite.com/stuff.php

 

the server crunches through all the php code on stuff.php, and then serves my browser the contents.

 

What if someone visits that page a mere millisecond after I do?

 

Do they have to wait until the server crunches all the php and serves me,

or, does the server immediately start crunching the php, whilst still in the middle of producing my page?

 

Thanks

The second one.

I have some reports (single PHP scripts) at work that run as long as 2 minutes, the server can run multiple instances of the webserver daemon.

Each instance of the webserver can be running PHP code, sending HTML, or running another kind of scripting code at the same time.

So, multiple users can run the same script at the same time.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.