Download Image which stored in Amazon S3 php scrip
<p>I have a S3 account to store all images. </p>

<pre><code>mysite.s3.amazonaws.com/imagename.JPG
</code></pre>

<p>This URL is secret , where i am upload restricted user. I have to create Download URL for this secrete Image. This Download url only available to uploaded user. </p>

<p>How i can write code in php to download a image file securely.</p>

<p>May be url will look like : <code>mysite.com/restrictedimage.php?mid=xyztokens234</code></p>
