PHP文件上传管理器 class.upload.php

码农软件 · 软件分类 · 文件上传组件 · 2019-03-30 16:12:05

软件介绍

class.upload.php 为你管理基于 HTTP 的文件上传,示例代码:

$foo = new Upload($_FILES['form_field']);
if ($foo->uploaded) {
 
// save uploaded image with no changes
  $foo
->Process('/home/user/files/');
 
if ($foo->processed) {
    echo
'original image copied';
 
} else {
    echo
'error : ' . $foo->error;
 
}
 
// save uploaded image with a new name
  $foo
->file_new_name_body = 'foo';
  $foo
->Process('/home/user/files/');
 
if ($foo->processed) {
    echo
'image renamed "foo" copied';
 
} else {
    echo
'error : ' . $foo->error;
 
}
 
// save uploaded image with a new name,
 
// resized to 100px wide
  $foo
->file_new_name_body = 'image_resized';
  $foo
->image_resize = true;
  $foo
->image_convert = gif;
  $foo
->image_x = 100;
  $foo
->image_ratio_y = true;
  $foo
->Process('/home/user/files/');
 
if ($foo->processed) {
    echo
'image renamed, resized x=100
          and converted to GIF'
;
    $foo
->Clean();
 
} else {
    echo
'error : ' . $foo->error;
 
}
}

It manages the uploaded file and allows you to do whatever you want with the file as many times as you want. If the file is an image, you can convert and resize it, rotate it, and crop it in many ways. You can also add borders, frames, bevels, add of text labels and watermarks, or apply various graphical effect filters. Security features and file management functions are provided. The class can also work on local files, which is useful for batch processing images online, and can circumvent open_basedir restrictions.

如果下面的网址无法访问,下载请进:http://freshmeat.net/projects/class_upload_php

本文地址:https://codercto.com/soft/d/2492.html

算法交易:制胜策略与原理

算法交易:制胜策略与原理

[美]欧内斯特·陈(Ernest P. Chan) / 高闻酉、黄蕊 / 机械工业出版社 / 49.00

本书是一本引人入胜、信息量大、覆盖各类交易策略的图书。无论个人投资者,还是机构投资者,都可以借鉴和使用其中的策略。本书中的策略大致可分为均值回归系统和动量系统两大类。书中不仅介绍了如何使用每种类别的交易策略,更解释了各种策略之所以有效的原因。本书始终以简单、线性的交易策略为重心,因为复杂的交易策略容易受到过度拟合及数据窥探的侵害。数学和软件是算法交易的两条腿。本书用到了一定程度的数学知识,使其对各......一起来看看 《算法交易:制胜策略与原理》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换