Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    multiple request

    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 ?

  • #2
    God Emperor Fou-Lu's Avatar
    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.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts