Both curl and file_get_contents request interfaces in PHP are very slow, but accessing them directly in the browser is very fast. Does this explain the situation?

WBOY
Release: 2016-09-30 09:23:11
Original
2182 people have browsed it

This is the interface:
http://api.k780.com:88/?app=w...

The problem now is that no matter how I use curl or file_get_contents() to request the interface, it is very slow. I also checked it myself and it said that it is enough to change the domain name to IP, but IP will sometimes be changed, and this website configuration I have a virtual domain name and cannot access it using IP

I would like to ask if there is any way to shorten the time?

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!