Home > Backend Development > PHP Tutorial > In one request, php sends another request

In one request, php sends another request

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:07:00
Original
1091 people have browsed it

  1. If my environment is phpstudy, two domain names www.a.com www.b.com are bound to it

    <code>  a.com发送了一个请求,请求a.php
      
      在a.php里面需要curl b.com中的b.php
      
      以此来获取返回的数据
      
      但是只有一个fastcgi进程,因此就无法再启一个服务去跑b.php的东西了
    </code>
    Copy after login
    Copy after login
  2. If my environment is lnmp, it will also have the same problem as above

I want to know how to solve similar problems in both environments. I have been working on it for a long time and there is no perfect solution. God, don’t spray.

Reply content:

  1. If my environment is phpstudy, two domain names www.a.com www.b.com are bound to it

    <code>  a.com发送了一个请求,请求a.php
      
      在a.php里面需要curl b.com中的b.php
      
      以此来获取返回的数据
      
      但是只有一个fastcgi进程,因此就无法再启一个服务去跑b.php的东西了
    </code>
    Copy after login
    Copy after login
  2. If my environment is lnmp, it will also have the same problem as above

I want to know how to solve similar problems in both environments. I have been working on it for a long time and there is no perfect solution. God, don’t spray.

It would be nice if you had a few more fastcgi processes

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template