Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: multiple request
03-10-2013, 03:03 PM #1
- Join Date
- Nov 2011
- Thanked 0 Times in 0 Posts
Hello, when I request two or more php pages at the same time my server first waits the previous script were run and then start processing other pages. How can I make it process all script requested even if the previous didn't still finish ?
03-10-2013, 04:56 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,660 Times in 2,629 Posts
This isn't an issue with your PHP code. The webserver is responsible for accepting and threading off requests, so if it stalls on one script before loading a second, than the version of the webserver software is either not multithread capable or not configured to allow multiple requests.
If your referring to your local machine dev environment, than I wouldn't bother with configuring it.
If you are on a shared host, it should already be configured. If not, contact your host.
If you are on a VPS or dedicated, than you'll need to follow the documentation for your webserver software to set up the number of allowed requests.
header('HTTP/1.1 420 Enhance Your Calm');