最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PHP 获取远程文件大小常用方法总结
时间:2022-06-24 19:59:09 编辑:袖梨 来源:一聚教程网
1、fsockopen
代码如下 | 复制代码 |
function getFileSize($url){ |
2、使用file_get_contents()
代码如下 | 复制代码 |
$file = file_get_contents($url); |
3. 使用get_headers()
代码如下 | 复制代码 |
$header_array = get_headers($url, true); //返回结果
|
4.curl
代码如下 | 复制代码 |
function remote_filesize($uri,$user='',$pw='') |
相关文章
- 恋与制作人国庆节有什么福利 恋与制作人2024年长假福利介绍 10-01
- 如鸢卡池顺序一览 如鸢卡池顺序最新 10-01
- 阴阳师10月新式神是谁 阴阳师2024年10月新式神介绍 10-01
- 归龙潮异域疾行怎么玩 10-01
- 光遇破晓季集体复刻怎么玩 10-01
- 敲棺盖修改器在哪下载 10-01