Error providing image from another site
<p>Basically what I want to do is have a section on my site, where you provide the username of a user, example: NOTCH </p>

<p>Where it then goes to the minecraft host and finds the user's skin. "Skin Stealer" if you like.</p>

<p>However I'm getting an error and have no idea how to get around it..</p>

<pre><code>&lt;?php
if ($_GET['user'])
{
$user = $_GET['user'];

if(trim($user) == '')
{
    die('No username entered!');
}

$user = preg_replace('/\s+/', '', $user);

header('Content-Type: image/png');
$picture = '&lt;img src="http://s3.amazonaws.com/MinecraftSkins/$user.png"&gt;';
$getpicture = file_get_contents("$picture");
echo $picture
}
?&gt;
</code></pre>

<p>The HTML is just a basic form which reads the php page called 'mcskin.php'</p>
