Home  >  Article  >  php教程  >  php中调用其他系统http接口的方法说明

php中调用其他系统http接口的方法说明

WBOY
WBOYOriginal
2016-06-06 20:24:341065browse

本篇文章主要是对php中调用其他系统http接口的方法进行了介绍,需要的朋友可以过来参考下,希望对大家有所帮助

使用函数:  file_get_contents($url);

传入接口url及其参数:如

$url="http://192.168.1.1/test.jsp?id=1&type=2";

$ret=file_get_contents($url);

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