All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Linux下Apache并发连接数和带宽控制_php资料_编程技术
PHP实例程序:实现给上传图片加水印图案的做法_php资料_编程技术
SQL中CASE的用法_[SQL,Server教程]
MS SQL数据库备份和恢复存储过程(加强版本)_[SQL Server教程]
C#网络应用编程基础练习题与答案(五)_[Asp.Net教程]
利用.net反射动态调用指定程序集的中的方法_[Asp.Net教程]
SQL语句中用,Where,In,进行排序_[Asp.Net教程]
ASP.NET,MVC框架(第一部分)_[Asp.Net教程]
PHP技巧:用PHP导出MySQL数据库内容为.sql文件_[PHP教程]
利用Asp.net,Ajax异步获取xml文档内容_[Asp.Net教程]
Reading number is top 10 pictures
The other a successor of sora aoi
Perfect small Laurie2
如果没有好报,为什么要做好人?
寒流来了
Household design of gorgeous series
The girl of like self-time
Japan sexy beauty passion photo
身材野火台灣美女2
Small s breast enhancement demonstration
Born After 90 Beijing sports university campus flower photos3
Download software ranking
Eclipse-CALMSANNY (second edition)
Unix video tutorial5
Prostitutes diary
Boxer's Top ten classic battle9
Jinling thirteen stock
Eclipse 4.2.1 For Win32
Boxer's Top ten classic battle7
C#与.NET技术平台实战演练
Unix video tutorial15
Sora aoi, the nurse, uniform ,nursing assistant
归海一刀 published in(发表于) 2014/2/17 7:29:39 Edit(编辑)
PHP多文件上传类_[PHP教程]

PHP多文件上传类_[PHP教程]

PHP多文件上传类_[PHP教程]
PHP多文件上传类

/*
多文件上传类
修改:Linvo 2008-2-15
*/
class more_file_upload{
const FILE_PATH='../upfileclass/uploadfile/';
var file_type;
var file_type_array;
var file_type_real_array;
var file_type_string;
var file_name;
var file_size;
var file_tmp_name;
var file_error;
var handledate;
static totalsize=0;

function __construct(file_name,file_error,file_size,file_tmp_name,file_type){
this->handledate=date('m-d-Y');
if (!empty(file_name)){
this->file_name = file_name;
this->file_error = file_error;
this->file_size = file_size;
this->file_tmp_name = file_tmp_name;
this->file_type = file_type;
this->file_type_array = array('/', 'image/gif', 'image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png');
this->file_type_real_array = array(0.1, 'jpg'=>74707370, 'gif'=>7173, 'bmp'=>6677, 'png'=>807871);

this->show_execute_message(this->file_error,this->file_name,this->file_type,this->file_size);
}
}

function __destruct(){
this->file_name = NULL;
this->file_error = NULL;
this->file_size = NULL;
this->file_tmp_name = NULL;
this->file_type = NULL;
self::totalsize = 0;
}

function show_execute_message(smfileerror,smfilename,smfiletype,smfilesize){
if(smfileerror>0){
switch (smfileerror){
case 1: smfilemessage='文件超过服务器的约定大小!';break;
case 2: smfilemessage='文件超过指定的文件大小!';break;
case 3: smfilemessage='文件只上传了部分!';break;
case 4: echo "this->file_name ".'文件上传失败!
';break;
}
self::__destruct();
}else{
smfiletypeflag = array_search(smfiletype,this->file_type_array);



添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.