image upload and resize PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: fundisom.com
  • Last update:
  • Language: PHP
  • Price:GPL
  • Company: fundisom (View more)

image upload and resize script description:




Publisher review:
Image upload and resize - this little script resizes your uploaded image on the fly and saves it as thumbnail. This little script resizes your uploaded image on the fly and saves it as thumbnail. Respects aspect ratio and doesn't distort your image if$_POST['Submit'])) { $size = 150; // the thumbnail height $filedir = 'pics/'; // the directory for the original image $thumbdir = 'pics/'; // the directory for the thumbnail image $prefix = 'small_'; // the prefix to be added to the original name $maxfile = '2000000'; $mode = '0666'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; $userfile_size = $_FILES['image']['size']; $userfile_type = $_FILES['image']['type']; $_FILES['image']['name'])) { $prod_img = $filedir.$userfile_name; $prod_img_thumb = $thumbdir.$prefix.$userfile_name; move_uploaded_file($userfile_tmp, $prod_img); chmod ($prod_img, octdec($mode)); $sizes = getimagesize($prod_img); $aspect_ratio = $sizes[1]/$sizes[0]; if ($sizes[1] ; } ?>(isset(if (isset(
image upload and resize is a PHP script for Snippets scripts design by fundisom. It runs on following operating system: .

Operating system:


Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5