Skip to main content

Resize Image While Uploading with PHP

On my previous post I was shown an example how to upload file with php and html. It was based on php simple image upload functionality. Today I am going to show you little bit advance of image uploading. Suppose if you run a website and want to allow users to upload image files than you need to think little bit about server's space and bandwidth. For this purpose you need to do some optimization with image files. Image resize while uploading is one of them. All major website do it in the same way. If a user uploads a 5mb image file they resize it in different sizes and store on there server. It helps them to seed up there website and reduce there budget. Now take a look, how we can do it ourself.

Live Demo Download Source
PHP and HTML(index.php)
This file holds the basic of file uploading html markup and simple php upload handler.
<?php
include( 'function.php');
// settings
$max_file_size = 1024*200; // 200kb
$valid_exts = array('jpeg', 'jpg', 'png', 'gif');
// thumbnail sizes
$sizes = array(100 => 100, 150 => 150, 250 => 250);

if ($_SERVER['REQUEST_METHOD'] == 'POST' AND isset($_FILES['image'])) {
  if( $_FILES['image']['size'] < $max_file_size ){
    // get file extension
    $ext = strtolower(pathinfo($_FILES['image']['name'], PATHINFO_EXTENSION));
    if (in_array($ext, $valid_exts)) {
      /* resize image */
      foreach ($sizes as $w => $h) {
        $files[] = resize($w, $h);
      }

    } else {
      $msg = 'Unsupported file';
    }
  } else{
    $msg = 'Please upload image smaller than 200KB';
  }
}
?>
<html>
<head>
  <title>Image resize while uploadin</title>
<head>
<body>
  <!-- file uploading form -->
  <form action="" method="post" enctype="multipart/form-data">
    <label>
      <span>Choose image</span>
      <input type="file" name="image" accept="image/*" />
    </label>
    <input type="submit" value="Upload" />
  </form>
</body>
</html>

Resize Function(function.php):
Resize function is based on PHP GD library.
/**
 * Image resize
 * @param int $width
 * @param int $height
 */
function resize($width, $height){
  /* Get original image x y*/
  list($w, $h) = getimagesize($_FILES['image']['tmp_name']);
  /* calculate new image size with ratio */
  $ratio = max($width/$w, $height/$h);
  $h = ceil($height / $ratio);
  $x = ($w - $width / $ratio) / 2;
  $w = ceil($width / $ratio);
  /* new file name */
  $path = 'uploads/'.$width.'x'.$height.'_'.$_FILES['image']['name'];
  /* read binary data from image file */
  $imgString = file_get_contents($_FILES['image']['tmp_name']);
  /* create image from string */
  $image = imagecreatefromstring($imgString);
  $tmp = imagecreatetruecolor($width, $height);
  imagecopyresampled($tmp, $image,
    0, 0,
    $x, 0,
    $width, $height,
    $w, $h);
  /* Save image */
  switch ($_FILES['image']['type']) {
    case 'image/jpeg':
      imagejpeg($tmp, $path, 100);
      break;
    case 'image/png':
      imagepng($tmp, $path, 0);
      break;
    case 'image/gif':
      imagegif($tmp, $path);
      break;
    default:
      exit;
      break;
  }
  return $path;
  /* cleanup memory */
  imagedestroy($image);
  imagedestroy($tmp);
}

Comments

  1. Hi make sure image uploading is blocked when the file input is empty

    ReplyDelete
    Replies
    1. Yeah! We can do it by applying isset($_FILES['image'] or is_uploaded_file($_FILES['image']['tmp_name'] condition

      Delete
    2. if(!empty($_FILES)) can even be used to block empty image field...

      Delete
    3. i couldn't upload images which i taken from my digital camera. i got lots of errors such as
      Warning: getimagesize(): Filename cannot be empty in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 15

      Warning: Division by zero in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 17

      Warning: Division by zero in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 17

      Warning: Division by zero in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 18

      Warning: Division by zero in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 19

      Warning: Division by zero in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 20

      Warning: file_get_contents(): Filename cannot be empty in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 24

      Warning: imagecreatefromstring(): Empty string or invalid image in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 26

      Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 32

      please help me or reply me (sanso13527@gmail.com)

      Delete
    4. alot of new digital camera's take images in RAW format and they need to be converted to img, jpg, jpeg, png or bmp before they can be uploaded

      Delete
    5. This comment has been removed by the author.

      Delete
  2. Its working..
    Thanks!

    ReplyDelete
  3. Is it possible to resize multiple images at same time using this way?

    ReplyDelete
    Replies
    1. Good question! Of course it is possible!
      You need to add multiple attributable on file input.
      For detail see here

      Delete
  4. how to resize images in shape of ladder ...

    ReplyDelete
  5. Hey I used class for this. How to resize multiple image using the same code. What part of the PHP code we need to change. Because when i tried to take images in loop, i got error of class can not be re-declared. Please help me off in this. Thanks in advance

    ReplyDelete
  6. There is a problem with resize when uploading .PNG image, it shows black image.

    ReplyDelete
    Replies
    1. Its all about transparency!

      Please see this resource: http://stackoverflow.com/questions/32243/can-png-image-transparency-be-preserved-when-using-phps-gdlib-imagecopyresample

      Delete
  7. Hi, can you tell me how to insert the name of the resized file into a DB? I am trying to insert it but am unsure which variable to use.

    Thanks!

    ReplyDelete
    Replies
    1. You can store original file name using $_FILES['image']['name'] and rather you can call your file like this way uploads/100x100_yourfilename.jpg

      Delete
    2. Thanks for the great script, i tried to embed it in to my code but it went wrong and gives error.
      so kindly please have a look how to embed it into my code with out any error.
      Thanks in advance.

      This is the avatar.php file
      http://jsfiddle.net/pgbyL52p/


      This is the avatar.html.php form
      http://jsfiddle.net/7bfy59u3/

      Delete
  8. Is there a quick modification that would allow this to respect the aspect ratio of the original file? Currently all images are cropped according to the height and width parameters? Is there a way to set the width to auto?

    ReplyDelete
  9. Would like to keep the aspect ratio too, as NativePaul mentioned! Examples?

    ReplyDelete
  10. I'm not a PHP expert but once you retun a value form a function what's after is not executed.
    So this code is never reached:
    /* cleanup memory */
    imagedestroy($image);
    imagedestroy($tmp);

    ReplyDelete
    Replies
    1. That is correct. Once a return is reached, the function is exited. The return should ALWAYS (ok, there are few exceptions...) be the last line of a function

      Delete
  11. doesn't work in IE8... :(

    ReplyDelete
  12. Thanks, Well done

    ReplyDelete
  13. the code is cropping the image..i should get original image instead of cropping...help me please...

    ReplyDelete
  14. sir, can i send these three resisizes Pics in differnt folder insted sending only one folder "UPLOADS"
    pls reply i really needed this thing

    ReplyDelete
  15. Thx for the code, only one thing tho, whatever it is affter the return won't be executed, so your function isn't cleaning up the memory. Just move the return at the bottom ;)

    ReplyDelete
  16. Great code, can you please tell me how I can change this code, so I can uploade multiple images? And not one by one?
    Kind regards
    Nancy De Lange
    info@pixelduo.be

    ReplyDelete
  17. while uplodaing image as png it takes black color as in border?what to do now?

    ReplyDelete
  18. Please reply to the aspect ratio questions. I'm looking for the answer also.

    ReplyDelete
  19. How can upload this resized image into mysql?please give the code

    ReplyDelete
  20. Warning: imagejpeg(uploads/100x100_d90e6063f6246b6033581135e9f81a4c510fa220.jpg): failed to open stream: No such file or directory in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 36 <------this error came out when i ply it on the demo, what actually happen ??

    ReplyDelete
  21. Warning: imagejpeg(uploads/100x100_Android.jpg): failed to open stream: No such file or directory in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 36

    Warning: imagejpeg(uploads/150x150_Android.jpg): failed to open stream: No such file or directory in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 36

    Warning: imagejpeg(uploads/250x250_Android.jpg): failed to open stream: No such file or directory in /home/w3bees/public_html/demo/resize-image-while-uploading/function.php on line 36
    Image resize while uploading

    ReplyDelete
  22. Fatal error: Call to undefined function resize() in C:
    what should i do :( please help me out

    ReplyDelete
  23. Thanks for the great script, i tried to embed it in to my code but it went wrong and gives error.
    so kindly please have a look how to embed it into my code with out any error.
    Thanks in advance.

    This is the avatar.php file
    http://jsfiddle.net/pgbyL52p/


    This is the avatar.html.php form
    http://jsfiddle.net/7bfy59u3/

    ReplyDelete
  24. grow up kid. is this what you call RESIZE? At first glance I thought it is a great script. It is doing only a NORTIST crop. Webmechanic kids' silly way of handling images

    ReplyDelete
  25. This is the easiest example -
    http://phpforweb.info/upload-and-resize-an-image-using-php/

    ReplyDelete
  26. This script works great on its own, but has anybody been able to merge this with the Multiple File Upload? (http://www.w3bees.com/2013/02/multiple-file-upload-with-php.html) It seems to be more than modifying the file input field within the form. I've added the square brackets to name="image" as well as multiple="multiple", but the script doesn't want to execute the resize function. I've also tried merging the two scripts together, but nothing successful yet.

    ReplyDelete
  27. Show me how uploading over 2Mb please..
    what code is true?

    ReplyDelete
  28. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 14400 bytes) in C:\wamp\www\updated\test2.php on line 46

    1.0356 99399528 imagecreatetruecolor ( ) ..\test2.php:46

    any solutions??

    ReplyDelete
  29. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 14400 bytes) in C:\wamp\www\updated\test2.php on line 46

    1.0356 99399528 imagecreatetruecolor ( ) ..\test2.php:46

    any solutions??

    ReplyDelete
  30. great ideas, i've done my script - image resize before uploading with your ideas.
    Thanks Resalat Haque.,

    ReplyDelete
  31. crap. this script is only useful if you really into square images all the time. and you dont want to answer anyone how to respect image aspect ratio? thank you sori

    ReplyDelete
    Replies
    1. please help me out

      Hi , its cropping the image, i dont want cropping , only resizing , ex(image pix is pixel * pixel means i want it in 600*600 with original full image but now its cropping)

      Delete
  32. Hi , its cropping the image, i dont want cropping , only resizing , ex(image pix is pixel * pixel means i want it in 600*600 with original full image but now its cropping)

    ReplyDelete
  33. any easy method available for compress image in php

    ReplyDelete
  34. Great Script! How can I change the outputted file name (rename) to a specific name like filename1.jpg

    ReplyDelete
  35. great script. You should clean up the memory before the return :)

    ReplyDelete
  36. Dapatkan disini , karena Obat Pelangsing slimming Capsule Di Apotik belum tersedia , karena slimming capsule tidak di jual di sembarang temapat termasuk di apotik pun tujuannya untuk menjaga ke aslian produk tersebut, karena sekarang banyak perusahaan yang meniru produk produk herbal sehingga herbal yang asli khasiatnya bisa di rusak oleh produk yang palsu. Untuk itu hati hati dengan slimming capsule

    and obat vig power capsule

    ReplyDelete
  37. image quality is getting degraded , can you help in managing the same .. i want that image quality doesn't go down.

    ReplyDelete
  38. Wow! This is really an informative and good code. This post is very good.

    www.cute-it.com

    ReplyDelete
  39. Loved the script, and I added a lot of great features of my own, including a custom filename before adding it to database, but like others have mentioned, I still think the original image should be maintained, and the aspect ratio should be (optionally) preserved as one of the array options.

    ReplyDelete
  40. how to solve this error in this program

    $files[] = resize($w, $h);

    Fatal error: Call to undefined function resize() in C:\xampp\htdocs\New\index.php on line 16

    ReplyDelete
  41. Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.more 
    php jobs in hyderabad.

    ReplyDelete
  42. Those who dont want their image to be cropped, then replace it with this code

    this worked for me

    //do not crop update
    $ratio = max($width/$w, $height/$h);
    //$h = ceil($height / $ratio);
    $x = ($w - $width / $ratio) / 2;
    //$w = ceil($width / $ratio);
    /* new file name */
    $path = 'songs/'.$width.'x'.$height.'_'.$_FILES['songs']['name'][$key];
    $path1 = $width.'x'.$height.'_'.$_FILES['songs']['name'][$key];
    /* read binary data from image file */
    $imgString = file_get_contents($_FILES['songs']['tmp_name'][$key]);
    /* create image from string */
    $image = imagecreatefromstring($imgString);
    $tmp = imagecreatetruecolor($width, $height);
    imagecopyresampled($tmp, $image,0, 0, 0, 0,$width, $height,$w, $h);

    ReplyDelete
  43. • Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingAzure Online Training Hyderabad

    ReplyDelete
  44. That suggestions should appear more often. Delia

    ReplyDelete
  45. Great https://vintageitsolutions.com/

    ReplyDelete
  46. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you.Keep update more information.
    iWatch service center chennai | apple ipad service center in chennai | apple iphone service center in chennai | Apple laptop service center in chennai

    ReplyDelete


  47. flipkart free emi,
    flipkart no emi scheme,
    flipkart emi procedure debit card,
    flipkart emi on sbi credit card,
    flipkart 0 emi offer,
    flipkart emi through sbi debit card,
    flipkart emi from debit card
    flipkart emi down payment,
    flipkart new emi scheme,
    flipkart debit card emi kotak,
    flipkart emi on icici debit card,,
    flipkart debit card emi yes bank
    flipkart emi debit card axis,
    flipkart emi process in hindi,
    flipkart pay later emi,
    flipkart debit card emi 2018,
    flipkart emi conditions,
    flipkart emi review,
    flipkart emi how it works,
    flipkart se emi kaise kare,
    flipkart emi quora,,
    flipkart emi faq,
    flipkart emi interest rate,
    flipkart emi without interest,
    flipkart no cost emi quora,

    flipkart emi debit card,
    flipkart emi for debit card,
    flipkart emi with debit card,
    flipkart emi debit card sbi
    flipkart emi debit card mobile,
    flipkart emi on debit card sbi,
    flipkart emi using debit card,
    flipkart emi in debit card,
    flipkart emi debit card icici,
    flipkart debit card emi sms number,
    flipkart emi debit card axis bank,
    flipkart emi by debit card,
    flipkart hdfc debit card emi offer,
    flipkart par debit card se emi,
    flipkart give emi on debit card,
    flipkart emi through sbi debit card,
    emi on sbi debit card in flipkart,
    emi on debit card at flipkart,
    flipkart debit card emi banks,
    flipkart debit card emi number,
    flipkart debit card emi apply,
    flipkart emi with sbi debit card,
    flipkart debit card emi sbi sms,
    flipkart debit card emi icici bank,
    flipkart par debit card se emi kaise kare,
    flipkart debit card emi message,
    flipkart debit card emi products list,
    flipkart debit card emi not showing,
    flipkart debit card emi laptop,
    flipkart debit card emi idbi,
    flipkart debit card emi bob,
    flipkart debit card emi news,
    flipkart emi without debit card,
    flipkart debit card emi facility,
    flipkart emi debit card option,
    flipkart debit card emi limit,
    flipkart no cost emi hdfc debit card,
    flipkart debit card emi iob,
    flipkart debit card emi how,
    flipkart emi debit card hindi,
    flipkart se debit card se emi kaise kare,
    flipkart debit card emi kaise kare,
    will flipkart accept debit card for emi,
    flipkart sbi debit card emi link,
    flipkart emi debit card eligibility,
    how to flipkart emi on debit card,
    flipkart debit card emi which banks
    flipkart state bank debit card emi,
    flipkart debit card emi 2018,
    flipkart debit card emi offer details,
    flipkart debit card emi advertisement,
    flipkart debit card emi telugu,
    flipkart pe debit card emi kaise banaye,
    flipkart axis debit card emi eligibility,
    flipkart emi on debit card icici,
    flipkart debit card emi youtube,
    flipkart emi debit card sms,
    flipkart debit card emi in hindi,
    flipkart debit card emi option sbi,
    flipkart debit card emi activation,
    flipkart debit card emi video,
    flipkart emi debit card check,
    flipkart emi on debit card quora,
    flipkart emi debit card hdfc,
    flipkart debit card emi option hdfc,
    flipkart emi debit card kotak,
    flipkart debit card emi yes bank,
    flipkart debit card emi eligibility icici,
    flipkart debit card emi hdfc eligibility,
    flipkart debit card emi sbi in hindi,
    flipkart emi on debit card hindi,
    flipkart sbi debit card emi eligibility check sms,
    flipkart emi on debit card terms and conditions,
    flipkart debit card emi eligibility sbi,,
    flipkart hdfc debit card emi eligibility,
    flipkart debit card emi indusind bank,

    flipkart emi debit card sbi,
    flipkart emi debit card mobile,
    flipkart emi debit card icici,
    flipkart emi on debit card offer,
    flipkart emi debit card axis
    flipkart emi debit card offer,
    flipkart emi debit card option,
    hdfc debit card emi offers flipkart,
    flipkart emi debit card hindi,
    flipkart emi debit card eligibility,
    flipkart debit card emi offer details,
    flipkart emi debit card sms,
    flipkart emi debit card hdfc

    ReplyDelete
  48. flipkart credit card offers,
    credit card offers for flipkart,
    credit card offers in flipkart,
    hdfc credit card offers for flipkart,
    hdfc credit card offers in flipkart,
    hdfc credit card offers on flipkart,
    flipkart icici credit card offers,
    icici credit card offers on flipkart,
    flipkart sbi credit card offers,
    flipkart citibank credit card offers,
    citibank credit card offers on flipkart,
    flipkart citi credit card offers,
    sbi credit card offers on flipkart today,
    flipkart credit card emi,
    indusind bank credit card offers on flipkart,
    flipkart credit card generator,
    kotak credit card offers on flipkart,
    rbl credit card offers on flipkart,
    flipkart axis bank credit card offers,
    flipkart credit card apply online,
    sbi credit card offers in flipkart,
    hdfc credit card offers on flipkart 2018,
    flipkart axis credit card offer,
    flipkart credit card holder,
    flipkart credit card apply,
    flipkart credit card offers today,
    axis bank neo credit card offers on flipkart,
    flipkart hsbc credit card offers,
    flipkart credit card emi process,
    flipkart offers for citi credit card,
    axis neo credit card offers on flipkart,
    citi credit card offers on flipkart,
    flipkart credit card cash back offer,
    hdfc credit card emi offers on flipkart,
    flipkart kotak credit card offer,
    flipkart hdfc credit card offer 2018,
    indusind credit card offers on flipkart,
    flipkart credit card offers 2018,
    flipkart hdfc bank credit card offers,
    axis bank credit card offers in flipkart,
    flipkart credit card refund,
    yes bank credit card offers flipkart,
    flipkart credit card payment,
    american express credit card offers flipkart,
    citibank credit card offers on flipkart 2017,
    flipkart and credit card offers,
    flipkart big billion day credit card offers,
    flipkart hdfc credit card offers 2017,
    icici coral credit card offers on flipkart

    ReplyDelete
  49. flipkart cashback offer,
    flipkart axis cashback offer,
    flipkart discount coupon codes
    flipkartcashbackoffers,
    flipkart sbi cashback offers,
    flipkart cashback offers on mobiles,
    big billion day offers flipkart cashback,
    cashback offers flipkart,
    flipkart exchange offers on mobiles,
    flipkart cashback,
    flipkart cashback june,
    flipkart cashback offers,
    flipkart offers toady,
    flipkart bank cashback offer,
    flipkart cashback offers on watches,
    flipkart cashback offers on fashion,
    flipkart big billion day cashback offers,
    flipkart cashback may,
    flipkart big billion day offers 2017,
    flipkart deal of the day offers,
    flipkart christmas cashback offers,
    flipkart hdfc cashback,
    flipkart hdfc cashback offers,
    flipkart coupons,
    flipkart offers,
    flipkart offers cashback,
    flipkart offers 2017,
    flipkart axis bank offer,
    flipkart cashback february,
    flipkart cashback offers on washing,
    flipkart big billion day offers,
    flipkart hdfc cashback on electronics,
    flipkart offers on moblies,
    flipkartcashbackoffers,
    flipkart citi bank offers,
    flipkart cashback april,
    flipkart daily offers,
    flipkart yes cashback offer,
    flipkart today offers,
    flipkart discount offers on kitchen,
    flipkart cashback on home appliances,
    flipkart discount offers,
    flipkart deals today,
    flipkart cashback on mobiles,
    flipkart cashback offers on sarees,
    flipkart hdfc offer,
    flipkart cashback january,
    flipkart cashback offers on home,
    flipkart phonepe cashback offer,
    flipkart credit card offers,
    flipkart republic day sale offers,
    flipkart promo codes,
    flipkart cashback on refrigerators,
    flipkart upcoming offers in 2018,
    flipkart sbi offers,
    flipkart hdfc offer on mobiles,
    flipkart sbi offer cashback,
    flipkart debit card offers,
    flipkart phonepe offers, flipkart cashback coupons,
    flipkart citi bank offer,
    flipkart coupons 2018,
    flipkart citi bank offer on electronics,
    flipkart cashback on air conditioners,
    flipkart mobiles offers,
    flipkart iphone offers,
    flipkart hdfc bank offers,
    flipkart offers today,
    flipkart discounts on laptops,
    flipkart exchange offers,
    flipkart sbi cashback offer,
    big trillion day offers flipkart ,
    flipkart citi bank cashback offers,
    flipkart cashback offers 2018,
    flipkart hdfc offers,
    flipkart axis bank offers,
    flipkart air conditioner offers
    flipkart offers on televisions,
    flipkart refrogiratiors offers,
    flipkart sbi offer,
    flipkart daily deals,
    flipkart phonepe cashback offers,
    flipkart cashback offers,
    flipkart offers on laptops,
    flipkart new year cashback offers,
    flipkart emi offers,
    flipkart sbi offers on electronics

    ReplyDelete

  50. flipkart hdfc bank credit card offers,
    flipkart hdfc card,
    flipkart hdfc cashback,
    flipkart hdfc credit card cash back offer,
    flipkart hdfc credit card offer 2016,
    flipkart hdfc debit card offer,
    flipkart hdfc discount coupon,
    flipkart offer code for hdfc credit card,
    flipkart offer code for hdfc debit card,
    flipkart offers for hdfc credit card 2018,
    flipkart offer with hdfc credit card,
    flipkart hdfc offer,flipkart hdfc offer today,
    hdfc 10 cashback flipkart,
    hdfc 10 cashback offer flipkart,
    hdfc and flipkart offer,
    hdfc and flipkart offers,
    hdfc bank card offers on flipkart,
    hdfc bank credit card flipkart offer,
    hdfc bank credit card offers in flipkart,
    hdfc bank credit card offers on flipkart,
    hdfc bank debit card offers on flipkart,
    hdfc bank discount on flipkart,
    hdfc bank flipkart,
    hdfc bank flipkart discount,
    hdfc bank flipkart offer,
    hdfc bank offer flipkart,
    hdfc bank offers for flipkart,
    hdfc card discount on flipkart,
    hdfc card offer flipkart,
    hdfc card offer on flipkart,
    hdfc card offers for flipkart,
    hdfc cash back credit card,
    hdfc cash back credit card flipkart,
    hdfc cash back offer on flipkart,h
    dfc cash back offers on flipkart,
    hdfc cashback flipkart,
    hdfc cashback in flipkart,
    hdfc cashback offer flipkart,
    hdfc cashback offer on flipkart,
    hdfc cashback on flipkart,
    hdfc credit card cash back offer,
    hdfc credit card cash back offer on flipkart,
    hdfc credit card cash back offer on samsung mobile,
    hdfc credit card cash back offers on laptops,
    hdfc credit card discount coupon for flipkart,
    hdfc credit card discount on flipkart,
    hdfc credit card discount on mobile phones,
    hdfc credit card flipkart,
    hdfc credit card flipkart coupons,
    hdfc credit card flipkart offer 2016,
    hdfc credit card offer on flipkart,
    hdfc credit card offer on flipkart 2015,
    hdfc credit card offer on flipkart mobiles,
    hdfc credit card offers in flipkart 2016,
    hdfc credit card offers on flipkart 2016,
    hdfc credit card offers on flipkart today,
    hdfc credit card offers on mobiles,
    hdfc credit card offers on mobiles flipkart,
    hdfc credit offer on flipkart,
    hdfc debit card flipkart offer,
    hdfc debit card offer for flipkart,
    hdfc debit card offers flipkart,
    hdfc debit card offers in flipkart,
    hdfc discount coupons for flipkart,
    hdfc discount for flipkart,
    hdfc discount on flipkart,
    hdfc flipkart,
    hdfc flipkart cashback,
    hdfc flipkart credit card offers,
    hdfc flipkart offer 2018,
    hdfc flipkart offer 2018,
    hdfc flipkart offer today,
    hdfc netbanking offers on flipkart,
    hdfc offer in flipkart,
    hdfc times card offers on flipkart,
    offers for hdfc credit card in flipkart,
    offers in flipkart for hdfc credit card,
    offer on hdfc credit card on flipkart,o
    ffer on flipkart for hdfc credit card,
    offer for hdfc credit card on flipkart,
    hdfc offer on flipkart 2018,
    hdfc offers on flipkart today,
    flipkart offer for hdfc bank credit card,
    flipkart offer for hdfc card,
    flipkart hdfc offer,
    flipkart offers for hdfc credit card,
    flipkart hdfc debit card emi,
    flipkart hdfc debit card offer,
    flipkart grocery hdfc offer,
    flipkart hdfc debit card emi offer,
    flipkart hdfc offer 2018,
    flipkart coupons for hdfc,
    flipkart offer with hdfc credit card,
    flipkart hdfc bank,
    flipkart hdfc max discount,
    flipkart hdfc smart buy,
    flipkart hdfc promo code,
    flipkart hdfc emi offer,
    flipkart emi hdfc debit card,
    flipkart hdfc debit card emi products,
    flipkart hdfc flight offer,
    flipkart hdfc credit card emi,
    flipkart hdfc no cost emi,
    flipkart hdfc bank debit card emi,
    flipkart loan from hdfc,
    flipkart hdfc debit card emi eligibility,
    flipkart freedom sale hdfc offer,
    flipkart hdfc sale,
    flipkart hdfc emi,
    flipkart sale hdfc offer,
    flipkart hdfc offer today,
    flipkart hdfc instant discount,
    flipkart hdfc offer august 2018,
    flipkart hdfc offer may 2018,
    flipkart hdfc t&c,
    hdfc flipkart big shopping days,
    hdfc regalia flipkart offer,
    flipkart hdfc 10 discount,
    flipkart hdfc offer 2017,
    flipkart hdfc offer july 2017,
    flipkart hdfc offer may 2017

    ReplyDelete
  51. flipkart state bank card offer,
    flipkart state bank credit card offer,
    flipkart state bank offer,
    flipkart state bank offers,

    offer on sbi card on flipkart,
    offer on sbi credit card on flipkart,
    flipkart sbi 10 cashback,
    flipkart sbi 10 discount,
    flipkart sbi 10 offer,
    flipkart sbi bank offer,
    flipkart sbi card 10 cashback,
    flipkart sbi card discount,
    flipkart sbi card offer 2018,
    flipkart sbi card offer terms and conditions,
    flipkart sbi card offer today,
    flipkart sbi cashback,
    flipkart sbi cashback offer,
    flipkart sbi coupons,
    flipkart sbi credit card,
    flipkart sbi credit card offer 2018,
    flipkart sbi debit card,
    flipkart sbi discount,
    flipkart sbi offer,
    flipkart sbi offer 2018,
    flipkart sbi offer august 2018,
    flipkart sbi offer december 2018,
    sbi 10 cashback flipkart,,
    sbi 10 cashback offer on flipkart,
    sbi 10 cashback on flipkart,
    sbi 10 discount on flipkart,
    sbi and flipkart offer,
    sbi bank offers on flipkart,
    sbi card 10 cashback flipkart,
    sbi card cash back offer on flipkart,
    sbi card cashback flipkart,
    sbi card discount on flipkart,
    sbi card flipkart,
    sbi card offer flipkart,
    sbi card offer for flipkart,
    sbi card offer in flipkart,
    sbi card offer on flipkart 2016,
    sbi card offers on flipkart,
    sbi card on flipkart,
    sbi cash back offer flipkart,
    sbi cashback flipkart,
    sbi cashback offer flipkart,
    sbi cashback offer in flipkart,
    sbi cashback offer on flipkart,
    sbi coupon code for flipkart,
    sbi credit card cash back offer flipkart,
    sbi credit card discount on flipkart,
    sbi credit card flipkart,
    sbi credit card offer flipkart,
    sbi credit card offer for flipkart,
    sbi credit card offer in flipkart,
    sbi credit card offers on flipkart,
    sbi credit card offers on flipkart today,
    sbi debit card 10 cashback offer flipkart,
    sbi debit card cash back offer flipkart,
    sbi debit card cash back offer on flipkart,
    sbi debit card cashback on flipkart,
    sbi debit card discount on flipkart,
    sbi debit card flipkart,
    sbi debit card offer in flipkart,
    sbi debit card offers flipkart,
    sbi discount flipkart,
    sbi discount on flipkart,
    sbi flipkart,
    sbi flipkart cashback,
    sbi flipkart cashback offer,
    sbi flipkart coupons,
    sbi flipkart offer 2015
    sbi offer for flipkart
    sbi offer in flipkart
    sbi online shopping offers flipkart,
    sbi so books flipkart,
    state bank debit card offer flipkart,
    state bank flipkart offer,
    state bank offer on flipkart,
    state bank offers in flipkart,

    offers in flipkart for sbi credit card,

    how to avail sbi 10 off on flipkart,
    how to avail sbi card offer in flipkart,
    how to avail sbi card offer on flipkart,
    how to avail sbi debit card offer on flipkart,
    how to avail sbi discount on flipkart,
    how to avail sbi offer on flipkart,

    how to apply sbi card offer in flipkart,
    how to apply sbi offer in flipkart

    ReplyDelete

  52. Flipkart CashBack Offers - SBI, HDFC, ICICI, Citibank Cards,flipkart sbi debit card emi,flipkart upcoming offers on mobiles,snapdeal credit card offers,flipkart credit card,flipkart cashback phonepe,flipkart credit card generator,flipkart cashback offer phonepe,flipkart american express,india fake debit card generator,flipkart pockets offer,flipkart bank offers 2018,flipkart american express gift card,sbi credit card offers on flipkart today,sbi flipkart offer,sbi debit card offers cash back,sbi flipkart offer 2018,Flipkart Cashback Offers || Flipkart Bank Offers || Flipkart Deals 2018 ||


    cashback offers coupons,
    cashback offers coupons


    Offers.Flipkart .
    flipkart bank offers,flipkart cash back coupons, flipkart offers,flipkart cashback offers ,flipkart cashback offers,flipkart cash back offers,flipkart cashback coupons,flipkart cashback,Flipkart Cashback Offers,Flipkart Bank Offers, flipkart upcoming offers on mobiles, flipkart hdfc offer, flipkart icici offer,sbi credit card offers on flipkart today,sbi flipkart offer, hdfc credit card offers on flipkart, flipkart upcoming offers on mobiles, flipkart offers


    amazon Cashback Offers 2018 Upto 65% Cashback Deals, AMAZON CASHBACK
    OFFERS 2018, DISCOUNT COUPON OFFERS 2018, Amazon cashback offers with sbi hdfc icici axis banks credit&debit card offers more. amazon cashback offers2018,amazon india cashback,amazon offers on mobiles,amazon cashback2018,amazon offers 2018


    "cash back coupons "Coupons, Discounts & Offers on 1500+ Shopping Sites in
    India. Get Extra Cashback Everytime You Shop Online using Coupons of Amazon, Flipkart, Tata CLiQ, Nykaa etc."cashback, vouchers, coupons, discounts, offers, deals, promo codes,Coupons, Promo Codes & Cashback Offers



    "Flipkart Cashback Offers || Flipkart Bank Offers || Flipkart Deals 2018 ||" "flipkart upcoming offers on mobiles, hdfc credit card offers on flipkart 2018, sbi credit card offers on flipkart today, flipkart hdfc offer terms and conditions, sbi flipkart offer 2018, flipkart cashback phonepe, flipkart hdfc offer august 2018, flipkart icici offers

    Musafir, My Bus Tickets, Myles, Orbitz, Qatar Airways, Rehlat, Sixt Car Rental, Skyscanner, SOTC Holidays, Starline Tours, Thomas Cook, Ticket Goose, Travelguru, Travel Talk Tours, Treebohotels

    ,Credit card offers in jabong,jabong hdfc Cashback,jabong icici cashback,jabong sbi cashback,
    Jabong Cashback Offers & Discount Coupons 2018 : Extra 20% Offer,jabong coupons, jabong offers, hdfc jabong offer, icici jabong offer 2018, jabong footwear, sbi jabong offer, jabong axis bank offer, jabong sbi offer 2018,jabong cashback Offers, jabong cashback, jabong Deals,Credit card offers in jabong,jabong hdfc Cashback,jabong icici cashback,jabong sbi cashback ,jabong axis cashback,jabong offers,Jabong cashback coupons,jabong offers

    ReplyDelete

  53. Online Sale - Online Sale Shopping of up to 70% Of...
    zivame cash back offers
    Jabong Bank Coupons April 2018 for ICICI, SBI, HDF...
    Ferns N Petals
    Amazon today's deals great saving every day
    Up to 40% off TVs & Appliances + Additional 10% cashback offers


    amazon cashback offers,Amazon Cashback Offers May 2018 Upto 65% Cashback Deals,Amazon cashback offers January,Amazon cashback offers February,amazon cashback march,Amazon offers april , Cashback offers may , August cashback amazon , September offers cashback November , Cashback offers on December , HDFC Credit card offers on amazon,Axis Bank credit card offer on amazon,ICICI bank offers in amazon,Citi bank cashback on amazon

    Amazon cashback offers January , Amazon cashback offers February , amazon cashback march , Amazon offers april , Cashback offers may , August cashback amazon , September offers cashback November , Cashback offers on December , HDFC Credit card offers on amazon , Axis Bank credit card offer on amazon , ICICI bank offers in amazon , Citi bank cashback on amazon

    make my trip citi credit and debit cards offers:- ...
    make my trip International hotel jaw -dropping dea...
    make my trip first night free on 1st hotel booking...
    Hurry! Get exciting discounts on Hotels & Flights ...
    akbartravels save big upto 1000 off on flight book...
    Exclusive offer: Get 15% OFF on HOTELS with Visa f...
    Exclusive offer: Get 15% OFF on HOTELS with Visa ...
    (10 may 18) : TRAVELSPICE 5 Star Hotels at 3 Star ...
    Travelspice - 10 may 18 cashback offers
    maake my trip anniversary trvel sale best deal int...
    Makemytrip International Flights latest deals on ...
    TopTravel Websites cashback offers &discounts upto


    "Cashback Offers Coupons Offers you dozens of Cashback offers with your Credit / debit / Net banking for Top eCommerce,cash back offers coupons

    Ferns N Petals ,ferns and petals login, ferns and ...
    shopclues paytm offer, shopclues 25 off coupon, sh...
    myntra coupons, myntra cashback paytm, myntra hdfc...
    Jabong Cashback - Jabong Offers, Cashback & Coupons,Cashback Coupons : CashBack Offers, Discount Coupons & Promo


    Ajio 40% off on 2990
    All shopping websites DISCOUNTS upto 80% offers HERE
    flipkart baby toys min 40% off
    flipkart Featured Deals
    Snapdeal cashback offers on Electronics upto 65% off on mobiles and accessories

    ReplyDelete

  54. flipkart axis cashback offer,
    flipkart discount coupon codes, flipkartcashbackoffers,flipkart sbi cashback offers, flipkart cashback offers on mobiles,big billion day offers flipkart cashback, cashback offers flipkart, flipkart exchange offers on mobiles, flipkart cashback, flipkart cashback june,flipkart cashback offers, flipkart offers toady,flipkart bank cashback offer, flipkart cashback offers on watches, flipkart cashback offers on fashion, flipkart big billion day cashback offers, flipkart cashback may, flipkart big billion day offers 2017, flipkart deal of the day offers, flipkart christmas cashback offers, flipkart hdfc cashback, flipkart hdfc cashback offers, flipkart coupons, flipkart offers, flipkart offers cashback, flipkart offers 2017, flipkart axis bank offer, flipkart cashback february, flipkart cashback offers on washing, flipkart big billion day offers, flipkart hdfc cashback on electronics,flipkart offers on moblies, flipkartcashbackoffers, flipkart citi bank offers, flipkart cashback april, flipkart daily offers, flipkart yes cashback offer, flipkart today offers, flipkart discount offers on kitchen, flipkart cashback on home appliances, flipkart discount offers, flipkart deals today, flipkart cashback on mobiles, flipkart cashback offers on sarees, flipkart hdfc offer, flipkart cashback january, flipkart cashback offers on home, flipkart phonepe cashback offer, flipkart credit card offers, flipkart republic day sale offers, flipkart promo codes, flipkart cashback on refrigerators, flipkart upcoming offers in 2018, flipkart sbi offers, flipkart hdfc offer on mobiles,flipkart sbi offer cashback, flipkart debit card offers, flipkart phonepe offers, flipkart cashback coupons, flipkart citi bank offer, flipkart coupons 2018, flipkart citi bank offer on electronics, flipkart cashback on air conditioners, flipkart mobiles offers, flipkart iphone offers, flipkart hdfc bank offers, flipkart offers today, flipkart discounts on laptops flipkart exchange offers, flipkart sbi cashback offer, big trillion day offers flipkart ,flipkart citi bank cashback offers, flipkart cashback offers 2018, flipkart hdfc offers flipkart axis bank offers, flipkart air conditioner offers flipkart offers on televisions, flipkart refrogiratiors offers, flipkart sbi offer, flipkart daily deals, flipkart phonepe cashback offers, flipkart cashback offers, flipkart offers on laptops, flipkart new year cashback offers, flipkart emi offers, flipkart sbi offers on electronics


    flipkart cashback offers,cashbackcoupons,cashbackoffer,cashbackofferscoupons,flipkarthdfcoffer,
    MyDealsAndCoupons,flipkart cashback offers,cashbackcoupons,flipkartcashbackoffers,cashbackoffer,cashbackofferscoupons,flipkarthdfcoffer,latestcashbackoffers,flipkartcreditcardoffers,dealsncashbackcashbackoffers


    Flipkart CashBack Offers,telugu bloggers ,telugu websites
    Flipkart CashBack Offers - SBI, HDFC, ICICI, Citibank Cards,flipkart sbi debit card emi,flipkart upcoming offers on mobiles,flipkart credit card,flipkart cashback phonepe,flipkart credit card generator,flipkart cashback offer phonepe,flipkart american express,india fake debit card generator,flipkart american express gift card,sbi credit card offers on flipkart today,sbi flipkart offer,sbi debit card offers cash back,sbi flipkart offer 2018,,telugu bloggers ,telugu websites

    ReplyDelete

Post a Comment

Popular posts from this blog

Multiple File Upload with PHP

Sometimes we need to allow our users to upload multiple file upload. On my previous post I was shown the basic of simple file upload with PHP. Today I am going to show you how to allow users to upload multiple files. It is almost similar like simple file upload but we need to do some modification with html markup and php code. multiple attribute is needed to add on the html markup. Major web browsers like Firefox, Chrome, Safari and IE 9+ support this attribute. Now I am going to show you how to upload multiple file with PHP and basic HTML form.

Live Comment System with jQuery Ajax PHP and MySQL

Recently I have been made a post that focused on how to submit form without page refreshing. That post shows the basic functionality of using jQuery Ajax. On the same follow this post will describe how we can create a comment system to post an instant comment without page refreshing. Let's start...