Home >Backend Development >PHP Tutorial > HTTP远道下载文件

HTTP远道下载文件

WBOY
WBOYOriginal
2016-06-13 12:46:57890browse

HTTP远程下载文件
fopen("http://www.xxxx.com/1.txt","r");//txt,xml可以打开
fopen("http://www.xxxx.com/1.php","r");//只能打开看到HTML相关内容,PHP代码不能看到
fopen("./1.php","r");//本地的话可以看到所有内容

请问:如何才能远程打开PHP文件内所有内容?

HTTP PHP远程 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
Previous article: php分页输出有关问题 Next article: 生手求