首页  >  文章  >  后端开发  >  php中调用其他系统http接口的方法说明_PHP教程

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

WBOY
WBOY原创
2016-07-13 10:36:57796浏览

使用函数:  file_get_contents($url);

传入接口url及其参数:如

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

$ret=file_get_contents($url);

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/736836.htmlTechArticle使用函数: file_get_contents($url); 传入接口url及其参数:如 $url="http://192.168.1.1/test.jsp?id=1 $ret=file_get_contents($url);...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn