Salve, ho questi codici:
Codice PHP:
<?
$name = $_GET['name'];
$hotel = $_GET['hotel'];
file_put_contents("images/{$name}.png", file_get_contents("http://www.habbo.{$hotel}/habbo-imaging/avatarimage?user={$name}&action=std&direction=3000003&head_direction=2999995&gesture=sml&size=l"));
$avatar = imagecreatefrompng("images/{$name}.png");
$base = imagecreatefrompng("base.png");
imagecopy( $base, $avatar, 12, 0, 0, 50, 64, 110 );
header( 'Content-type: image/png' );
imagepng( $base );
?>
e vorrei far in modo che l' immagine di base (base.png) sia spostata dall' alto di .. non so 50px, ma se modifico il primo zero presente in imagecopy non si sposta l' immagine di base ma l' immagine nella variabile $avatar .. Come faccio?