0

i am open a image in html and i would like to resize it's size by typing in url like localhost/changimage.php?width=40

Here is my code to open file and read the image:changimage.php

<?php

$remoteImage = "/var/www/html/zahir/images/bike.jpeg";

$imginfo = getimagesize($remoteImage);

header("Content-type: ".$imginfo['mime']);
//header("Content-Length

readfile($remoteImage);


?>

I have no idea how to do it..

Passerby
  • 9,715
  • 2
  • 33
  • 50
Zahir Alam
  • 15
  • 4

0 Answers0