Ciao a tutti!

Sto usando il seguente codice per creare watermark e funziona perfettamente... ma solo sul mio server LOCALE!! Appena metto il tutto sul mio server remoto (Ar*ba su, ahimè, hosting windows) non visualizza l'immagine! Ho pensato fosse un problema di permessi, ma ho provato il tutto nella cartella 'public' e niente... chi mi aiuta?? Il codice è questo:

Codice PHP:
<?php
//indichiamo l'immagine che dovrà essere firmata e
//il watermark che utilizzeremo per la firma
$img_sorgente 'sorgente.gif';
$sorgente_wtmk 'logofoto.png';

//ricaviamo il type dell'immagine sorgente e del watermark
$img_tipo = @substr($img_sorgente,@strlen($img_sorgente)-4,4);
$img_tipo = @strtolower($img_tipo);
$wtmk_tipo = @substr($sorgente_wtmk,@strlen($sorgente_wtmk)-4,4);
$wtmk_tipo = @strtolower($wtmk_tipo);

//richiamiamo diverse funzioni a seconda del tipo di immagine
if($img_tipo == ".gif")

  
$img_result = @imagecreatefromgif($img_sorgente);
}
elseif(
$img_tipo == ".jpg" || $img_tipo == "jpeg")

  
$img_result = @imagecreatefromjpeg($img_sorgente);
}
elseif(
$img_tipo == ".png")

  
$img_result = @imagecreatefrompng($img_sorgente);
}else{
  die(
"Impossibile rilevare il formato dell'immagine"); 


if(!
$img_result)
{
  die(
"Impossibile creare l'immagine");
}

//facciamo lo stesso per quanto riguarda il watermark
if($wtmk_tipo == ".gif")
{
  
$wtmk = @imagecreatefromgif($sorgente_wtmk);
}
elseif(
$wtmk_tipo == ".png")
{
  
$wtmk = @imagecreatefrompng($sorgente_wtmk);
}else{
  die(
"Impossibile rilevare il formato del watermark");
}

if(!
$wtmk) die("Impossibile creare il watermark");

//stabiliamo le dimensioni dell'output
$img_result_width = @imagesx($img_result);
$img_result_height = @imagesy($img_result); 
$wtmk_width = @imagesx($wtmk);
$wtmk_height = @imagesy($wtmk);
$width = (($img_result_width $wtmk_width)/1);
$height = (($img_result_height $wtmk_height)/1.2);

//creiamo un immagine che comprenda il sorgente modificato e il suo watermark 
@imagecopy(
$img_result
$wtmk
$width$height
0,
0,
$wtmk_width,
$wtmk_height
);

//visualizzazione dell'output
@header("Content-type: image/".@str_replace(".","",$wtmk_tipo));
@
imagejpeg($img_result);
@
imagedestroy($img_result);
@
imagedestroy($wtmk);
?>