摘要: download.php js 阅读全文
posted @ 2018-06-20 16:44 菜的掉渣 阅读(2810) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-06-20 16:00 菜的掉渣 阅读(643) 评论(0) 推荐(0) 编辑
摘要: #!/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... 阅读全文
posted @ 2018-06-20 11:03 菜的掉渣 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1 getRange($file_size); 27 28 header('cache-control:public'); 29 header('content-type:application/octet-stream'); 30 header('content-disposition:attac... 阅读全文
posted @ 2018-06-12 17:40 菜的掉渣 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: 1 host = $host; 24 $this->username = $username; 25 $this->password = $password; 26 $this->database = $database; 27 $this->charset = $charset; 28 set_tim... 阅读全文
posted @ 2018-05-09 18:21 菜的掉渣 阅读(742) 评论(0) 推荐(0) 编辑
摘要: APACHE 日志查看与分析 假设apache日志格式为: 118.78.199.98 – - [09/Jan/2010:00:59:59 +0800] “GET /Public/Css/index.css HTTP/1.1″ 304 – “http://www.a.cn/common/index. 阅读全文
posted @ 2018-04-24 16:12 菜的掉渣 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 1 array( 16 "tablename"=>"k_company", 17 "use_field"=>"id,title", 18 "condition"=>"id=%d", 19 "primary_key"=>"id", 20 ), 21 22 );... 阅读全文
posted @ 2018-04-18 11:03 菜的掉渣 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * GET 请求 3 * 4 * @param string $url 5 */ 6 private function http_get($url) 7 { 8 $oCurl = curl_init(); 9 if (stripos($url, "https://") !== FALSE) { 10 c... 阅读全文
posted @ 2018-04-18 11:02 菜的掉渣 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1 $dbname=DB_NAME; 2 $host=DB_HOST; 3 $port=DB_PORT; 4 $user =DB_USER; 5 $password=DB_PWD; 6 7 $mysqli = new \mysqli($host,... 阅读全文
posted @ 2018-03-30 17:57 菜的掉渣 阅读(1105) 评论(0) 推荐(0) 编辑
摘要: 转自:http://php.net/manual/zh/function.array-multisort.php 第一条评论就是。 转自:http://php.net/manual/zh/function.array-multisort.php 第一条评论就是。 转自:http://php.net/ 阅读全文
posted @ 2018-03-16 14:05 菜的掉渣 阅读(521) 评论(0) 推荐(0) 编辑