源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

PHP下通过file_get_contents的代理使用方法

  • 时间:2020-10-14 01:50 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:PHP下通过file_get_contents的代理使用方法
PHP使用file_get_contents的代理方法获取远程网页的代码。
[url=http://www.php.net/manual/en/function.file-get-contents.php]file_get_contents[/url]用法一页,下面是它的简单实例。
[u]复制代码[/u] 代码如下:
<?php $serverAddress = 'http://s.1sucai.cn'; //获得外域文件内容 $randomNumber = file_get_contents($serverAddress); //输出内容 echo $randomNumber; ?>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部