06 2018 档案
摘要:1 <?php 2 set_time_limit(0); //大文件在读取内容未结束时会被超时处理,导致下载文件不全。 3 4 $fpath = 'book.zip'; 5 $file_pathinfo = pathinfo($fpath); 6 $file_name = $file_pathinfo['basename']; 7 $file_extension...
阅读全文
摘要:#!/bin/bash #set env export PATH=$PATH:/bin:/sbin:/usr/sbin # Require root to run this script. if [ "$UID" != "0" ]; then echo "Please run this script by root." exit 1 fi #define cmd var S...
阅读全文
摘要:1 getRange($file_size); 27 28 header('cache-control:public'); 29 header('content-type:application/octet-stream'); 30 header('content-disposition:attac...
阅读全文

浙公网安备 33010602011771号