Login   Register  
PHP Classes

File: receipt.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vibert Bruno  >  Image copy resize  >  receipt.php  >  Download  
File: receipt.php
Role: Example script
Content type: text/plain
Description: Test upload post
Class: Image copy resize
Copy uploaded image keeping aspect ratio
Author: By
Last change:
Date: 12 years ago
Size: 234 bytes


Class file image Download

require( 'class_resize.php' );

// resize $_FILES[ 'myUploadedFile' ] widht 
$thumbail = new resize'fichier'400300 );

// save the resized image to "./TEMP.EXT"
$thumbail -> saveTo"TEMP.".$thumbail -> type );