多语言展示
当前在线:713今日阅读:138今日分享:33

file_get_contents():远程读取文件

file_get_contents():远程读取文件
工具/原料
1

Dreamweaver.exe

2

AppServ

方法/步骤
1

新建php文件

2

声明要读取的远程页面

3

file_get_contents():读取远程页面

4

输出页面内容

5

由于页面有中文,所以加上头部代码header('content-type:text/html;charset=utf-8');

6

预览效果如图

推荐信息