php method description to call the http interface of other systems

  • 2021-01-19 22:03:08
  • OfStack

file_get_contents($url);

Pass in the interface url and its parameters: e.g

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

$ret=file_get_contents($url);


Related articles: