Home  >  Article  >  Backend Development  >  怎么获取到一个页面echo出来的数据

怎么获取到一个页面echo出来的数据

WBOY
WBOYOriginal
2016-06-13 11:10:181839browse

如何获取到一个页面echo出来的数据?
21.166.30.25/1.php 里echo "ffff";
想要在 34.34.200.56/2.php 里得到这个数据,请问怎么做好?
这里的两个php页面分别在不同的服务器里

谢谢


------解决方案--------------------
echo file_get_contents('21.166.30.25/1.php');
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