Here's the FULL code (I have cancelled all the wrong things since Cronix's answer) :
<?php
//// BEGIN CONSTANTS ////
// coordinates for the skin's face
$face_x = 8;
$face_y = 8;
$face_width = 8;
$face_height = 8;
// coordinates for the skin's "mask", i.e. the layer that is overlaid
// on top of the face
$mask_x = 40;
$mask_y = 8;
$mask_width = 8;
$mask_height = 8;
// size of the output image
$avatar_width = 96;
$avatar_height = 96;
// The default skin. All hail Steve!
$default_skin_url = 'http://halcyon-pvp.fr/dl/img/char.png';
//// END CONSTANTS ////
$image = $default_skin_url; //used as default
if (isset($_GET['user'])) { //is the user set?
$user = $_GET['user'];
//Does the user image exist on site A?
$site_a = "http://halcyon-pvp.fr/skins/$user.png";
$site_b = "http://skins.minecraft.net/MinecraftSkins/$user.png";
if (file_get_contents($site_a) !== FALSE) $image = $site_a;
else if (file_get_contents($site_b) !== FALSE) $image = $site_b;
}
$skin = imagecreatefrompng($image);
// Set up a blank image to write to
$avatar = imagecreatetruecolor($avatar_width, $avatar_height);
// Resize and overlay the face region, as defined by the constants above
imagecopyresized($avatar, $skin, 0, 0, $face_x, $face_y,
$avatar_width, $avatar_height, $face_width, $face_height);
// Resize and overlay the mask region
imagecopyresized($avatar, $skin, 0, 0, $mask_x, $mask_y,
$avatar_width, $avatar_height, $mask_width, $mask_height);
// Finally, return the processed image as a png
header('Content-Type: image/png');
imagepng($avatar);
imagedestroy($avatar);
?>
It maybe comes cause of the Resize or the Header ? You could try the code, drop this code on a file like skin.php, drag in on your FTP, and try "http://yoursite.com/skin.php?user=AxploOdee" It's the site_a, the Head will Appears To try the site_b write "http://yoursite.com/skin.php?user=Ewearys" To try the defaut, write the name of your choice. The AxploOdee image exists on the site_a, and Ewearys on the site_b