PHP Classes
elePHPant
Icontem

xTem Upload: File upload processing class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-08-05 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 2,381 All time: 1,542 This week: 1,131Up
Version License Categories  
xupload 1.0GNU General Publi...Graphics, Files and Folders
Description Author  

This class is meant to process files of type uploaded via Web forms.

It features:

- File uploading handling, renaming and deleting

- Generation of thumbnail images for JPEG files (requires GD library)

Picture of Kai Schneider
Name: Kai Schneider <contact>
Classes: 2 packages by
Country: Germany Germany
Age: 29
All time rank: 91861 in Germany Germany
Week rank: 1471 Down77 in Germany Germany Down

Details provided by the author  
--------------------------------
Name: XTem Upload
--------------------------------

  function make_dir($_dir, $_rights)
  [$_dir]       - directory name
  [$_rights]    - chmod rights (0777, 0755 etc.)

  function change_dir($_dir)
  [$_dir]       - path to directory

  function upload_file($_file, $_name)
  [$_file]      - file from form-/data post ($_FILES['tmp_name']['fieldname']
  [$_name]      - new name on the server

  function make_thumb($_name, $_tname, $_with, $_height, $_del_source)
  [_$name]      - name and path to the jpeg file
  [_$tname]     - name for the new generated thumbnail
  [_$width]     - width for the new generated thumbnail
  [_$height]    - same as width, just for the height
  [_$del_source] - of you want to delete the orignal jpeg, set this to 1

  function del_file($_name)
  [_$name]      - name and path to the file you want to delete  



Feedback & Questions to:
 kai-vs-mdk-graphics@gmx.net
  Files folder image Files  
File Role Description
Accessible without login Plain text file Readme.txt Doc. Reference File / Tutorial
Plain text file xt_upload.php Class Main Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,381All time:1,542
 This week:0This week:1,131Up
 User Comments (1)  
 
Thx for scritp :) is very useful
2 years ago (Mohamed Ziata)
67%StarStarStarStar