Problems with accessing two php pages at the same time

Source: Internet
Author: User
* **. Php: *** echodate (& #39; h: I: s & #39 ;). & quot; n & quot; sleep (10); echodate (& #39; h: I: s & #39 ;). & quot; n & quot; *** B. php: *** phpinfo (); environment: nginx + php-cgi if I access B directly. php will immediately display the phpinfo information. if I access. php, will wait 10 seconds for php

**A. php:**

Echo date ('H: I: s'). "\ n ";
Sleep (10 );
Echo date ('H: I: s'). "\ n ";

**B. php:**

Phpinfo ();

Environment:
Nginx + php-cgi

If I access B. php directly, the phpinfo information will be immediately displayed.
If I access a. php directly, I will wait 10 seconds to display the information.

If I access a. php first and access B. php in another tag, why does it take 10 seconds for both pages to be displayed together?

Thank you for choosing php Cainiao...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.