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

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

WBOY
Release: 2016-06-13 12:57:16
Original
1242 people have browsed it

如何获取到一个页面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');
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template