<? require( 'class_resize.php' ); // resize $_FILES[ 'myUploadedFile' ] widht $thumbail = new resize( 'fichier', 400, 300 ); // save the resized image to "./TEMP.EXT" $thumbail -> saveTo( "TEMP.".$thumbail -> type ); ?>