Advertisement
gidmakus

ImageResizer

May 16th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1.  if ($_POST['MAX_FILE_SIZE'] >= $_FILES['imagefile']['size']) {
  2.                 $file = stripslashes($_FILES['imagefile']['name']);
  3.                 $extension = get_extension($file);
  4.                 $extension = strtolower($extension);
  5.                 $file_name = time().".".$extension;
  6.                 @copy($_FILES['imagefile']['tmp_name'], "uploads/".$file_name);
  7.  
  8. This is the part which gets the image file and upload it to desired location...
  9.  
  10. // now i wanted to implement the ImageResize from the ImageResizeUpload.php and that has to be added or called to the script above. I hope i make sense
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement