Home >Backend Development >PHP Tutorial >从api中抓取数据的有关问题

从api中抓取数据的有关问题

WBOY
WBOYOriginal
2016-06-13 11:44:45999browse

从api中抓取数据的问题
我从一个api里抓取数据用file_get_contents  可是有时候由于网络原因,还没有返回值程序就往下走了,请问有什么办法解决这个问题,当没有返回值的时候程序暂停执行

Statement:
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