File Name for Image Using URL Variable PHP
<p>I found this script, and I want to have the name of the image when downloaded to be the same as the URL Variable. Is that possible? If so, how would one do that? The script I have is...</p>

<pre><code>&lt;?php
header('Content-Type: image/png');
header('Content-Disposition: attachment; filename="EDITTHIS"');
echo file_get_contents("http://domain.tld/folder/" . $_GET["m"] . ".png");
?&gt;
</code></pre>

<p>Thank you.</p>
