|
1、使用file_get_contents()
[U]复制代码[/U] 代码如下:
2. 使用get_headers()
[U]复制代码[/U] 代码如下:
PS:
需要打开allow_url_fopen!
如未打开会显示
Warning: get_headers() [function.get-headers]: URL file-access is disabled in the server configuration
3.使用fsockopen()
[U]复制代码[/U] 代码如下:
您可能感兴趣的文章:获取远程文件大小的php函数从性能方面考虑PHP下载远程文件的3种方法php下载远程大文件(获取远程文件大小)的实例
|
|