本月博客排行
年度博客排行
-
第1名
青否云后端云 -
第2名
zw7534313 -
第3名
大家都说我很棒 - liyihz2008
- wy_19921005
- gengyun12
- hbxflihua
- e_e
- luxurioust
- dbagirl
- zysnba
- robotmen
- Alsmile
- gaozzsoft
- jywhltj
- cpongo1
- leslie26
- qepwqnp
- 解宜然
- cuityang
- gashero
- sichunli_030
- fantaxy025025
- zhangdaiscott
- vipbooks
- wallimn
- gdpglc
- ssydxa219
- ranbuijj
- javashop
- jickcai
- hanbaohong
- johnsmith9th
- appalese
- gaojingsong
- weiyides
- 淡看人生
- java-007
- zhangyi0618
- AVI
- laiyangdeli
- liunancun
- xpenxpen
- 龙哥IT
- conkeyn
- nychen2000
- ouanui
- silverend
- lemonhandsome
- jveqi
最新文章列表
php提供文件下载(header)
本文参考:http://www.laruence.com/2012/05/02/2613.html;http://www.52tzj.com/<?php
$file = "/tmp/中文名.tar.gz";
$filename = basename($file);
header("Content-type: appli ...
java将文件读取为byte[]数组
public byte[] readFile(String pathStr){
InputStream is = null;
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] b = new byte[1024];
int n;
try {
is = new FileInputStream( ...
【转载】php运用readfile函数实现下载文件权限判断
转自:http://www.imphper.cn/imphper-php-view.php?view=single&id=89
本人有修改!
<?php
$file = get_file_address();// 文件的真实地址(支持url,不过不建议用url)
if (file_exists($file))
{
header('Cont ...