Home > Backend Development > PHP Tutorial > 同时访问两个php页面遇到的问题

同时访问两个php页面遇到的问题

WBOY
Release: 2016-06-02 11:34:47
Original
1011 people have browsed it

php

** a.php: **

echo date('h:i:s') . "\n";
sleep(10);
echo date('h:i:s') . "\n";

** b.php: **

phpinfo();

环境:
nginx + php-cgi

如果我直接访问b.php,会立即显示出phpinfo的那些信息.
如果我直接访问a.php,会等待10秒钟显示出信息.

如果我先访问a.php,同时在另外一个标签访问b.php,为什么两个页面都要等待10秒钟才能一起显示?

php菜鸟在此谢谢...

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template