在前一篇文章里讲到了关于PHP文件上传原理和简单操作举例是单文件上传。http://www.cnblogs.com/lichenwei/p/3879566.html其实多文件上传和单文件上传大同小异,原理都是一样的,只是在代码上做了点小技巧。首先还是index.html上传表单,只是把之前上传文件表...
分类:
Web程序 时间:
2014-07-31 20:00:27
阅读次数:
307
(function(){ var tit = $("#tab a"), con = $("#tcontent>div"), cur = 'cur'; tit.mousemove(function(){ var index = tit.index(th...
分类:
其他好文 时间:
2014-07-31 19:57:47
阅读次数:
184
1、对于像状态之类的列,不是很多的,就可以加位图索引,对于唯一的列,就加唯一索引,其余的创建普通索引。2、尽量不要使用select * 这样的查询,指定需要查询的列。3、使用hits select /*+index(索引名称) index(索引名称)*/ supply_id from CSS_SUP...
分类:
数据库 时间:
2014-07-31 19:56:07
阅读次数:
335
#!/bin/sh
if [ -z "`curl --connect-timeout 15 --max-time 20 --head --silent http://localhost/index.php|head -n 1|grep ‘200‘`" ];then
echo -e "$(date +%Y-%m-%d)\n"
killall nginx
killall...
分类:
Web程序 时间:
2014-07-31 17:23:50
阅读次数:
301
1、新建一个表,插入1010000数据:
create table test(id int identity(1,1) ,name varchar(600))
go
insert into test
values(replicate('a',600));
go 1010000
create index idx_test_id on test(id)
2、新开一个会话(A),运...
分类:
数据库 时间:
2014-07-31 17:10:27
阅读次数:
359
和快速排序有点类似,利用快速排序的划分算法,
划分算法见http://blog.csdn.net/buyingfei8888/article/details/8997803
根据int partition(int number[],int start,int end);返回值为数组下标,大小为index,index左边值均小于number【index】,右边均大于number【index】,若...
分类:
其他好文 时间:
2014-07-31 17:05:16
阅读次数:
191
index.html dsFrameWork_Core.js/* * MAP对象,实现MAP功能 * * 接口: * size() 获取MAP元素个数 * isEmpty() 判断MAP是否为空 * clear(...
分类:
其他好文 时间:
2014-07-31 16:40:46
阅读次数:
225
http://www.xmlsoft.org/downloads.html 建议直接用openscenegraph下载的3rdparty:http://www.openscenegraph.org/index.php/download-section/dependencies
分类:
其他好文 时间:
2014-07-31 16:19:16
阅读次数:
200
/*
* php递归函数的用法
* 你玩过吗?
* 下面开始玩一玩
*/
//自己调自己就是回调 实现了一个垒加2垒减2的效果
class digui{
public function index($number){
if($number>0) {
echo $number," ";
...
分类:
其他好文 时间:
2014-07-31 13:32:26
阅读次数:
142
文件上传很非常常用的功能,一般的思路都是要么将文件作为二进行数据存储到数据库中,当然这种不常用;还有就是将文件的名字存在数据库中,文件则存在硬盘上一个固定的文件中,这种比较常见,我就介绍比较常见的上传吧,为了简化,并没有将数据入库.
首先在index.jsp页面,写上
测试struts上传
标题:...
分类:
其他好文 时间:
2014-07-31 13:26:06
阅读次数:
274