Basically what I want to do is have a section on my site, where you provide the username of a user, example: NOTCH
Where it then goes to the minecraft host and finds the user's skin. "Skin Stealer" if you like.
However I'm getting an error and have no idea how to get around it..
<?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 = '<img src="http://s3.amazonaws.com/MinecraftSkins/$user.png">';
$getpicture = file_get_contents("$picture");
echo $picture
}
?>
The HTML is just a basic form which reads the php page called 'mcskin.php'