php,fileopen and read and write in url
<p>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</p>

<p>Here is my code to open file and read the image:changimage.php</p>

<pre><code>&lt;?php

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

$imginfo = getimagesize($remoteImage);

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

readfile($remoteImage);


?&gt;
</code></pre>

<p>I have no idea how to do it..</p>
